Skip to content

Instantly share code, notes, and snippets.

@ArcTanSusan
Last active August 29, 2015 14:23
Show Gist options
  • Save ArcTanSusan/8b7b01241773420a66c6 to your computer and use it in GitHub Desktop.
Save ArcTanSusan/8b7b01241773420a66c6 to your computer and use it in GitHub Desktop.
bin/run_app.bash errors
(git:master:b7e7a24 △ )(05:45 PM)(barkeep)-> bin/run_app.bash
I, [2015-06-17T17:45:44.402742 #72092] INFO -- : Refreshing Gem list
/Users/susan/work/teacup_devbox/barkeep/models/user.rb:13:in `<class:User>': undefined method `desc' for :user_order:Symbol (NoMethodError)
from /Users/susan/work/teacup_devbox/barkeep/models/user.rb:12:in `<top (required)>'
from /Users/susan/work/teacup_devbox/barkeep/lib/models.rb:17:in `require'
from /Users/susan/work/teacup_devbox/barkeep/lib/models.rb:17:in `<top (required)>'
from /Users/susan/work/teacup_devbox/barkeep/lib/script_environment.rb:12:in `require'
from /Users/susan/work/teacup_devbox/barkeep/lib/script_environment.rb:12:in `<top (required)>'
from /Users/susan/work/teacup_devbox/barkeep/barkeep_server.rb:28:in `require'
from /Users/susan/work/teacup_devbox/barkeep/barkeep_server.rb:28:in `<top (required)>'
from config.ru:2:in `require'
from config.ru:2:in `block in <main>'
from /Users/susan/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rack-1.6.1/lib/rack/builder.rb:55:in `instance_eval'
from /Users/susan/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rack-1.6.1/lib/rack/builder.rb:55:in `initialize'
from config.ru:1:in `new'
from config.ru:1:in `<main>'
from /Users/susan/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/unicorn-4.9.0/lib/unicorn.rb:48:in `eval'
from /Users/susan/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/unicorn-4.9.0/lib/unicorn.rb:48:in `block in builder'
from /Users/susan/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/unicorn-4.9.0/lib/unicorn/http_server.rb:768:in `call'
from /Users/susan/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/unicorn-4.9.0/lib/unicorn/http_server.rb:768:in `build_app!'
from /Users/susan/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/unicorn-4.9.0/lib/unicorn/http_server.rb:137:in `start'
from /Users/susan/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/unicorn-4.9.0/bin/unicorn:126:in `<top (required)>'
from /Users/susan/.rbenv/versions/1.9.3-p194/bin/unicorn:23:in `load'
from /Users/susan/.rbenv/versions/1.9.3-p194/bin/unicorn:23:in `<main>'
(git:master:b7e7a24 △ )(05:45 PM)(barkeep)->
(git:master:b7e7a24 △ )(05:48 PM)(barkeep)-> ./script/initial_app_setup.rb
* Dependency create mysql barkeep database is not met. Meeting it.
Warning: Using a password on the command line interface can be insecure.
* Dependency run task once: database migrations is not met. Meeting it.
/Users/susan/work/teacup_devbox/barkeep/lib/models.rb:4: warning: already initialized constant DB
Error: NoMethodError: undefined method `[]=' for #<Sequel::Mysql2::Dataset: "SELECT * FROM `users`">
/Users/susan/work/teacup_devbox/barkeep/migrations/20120428064732_add_user_api_key_and_api_secret.rb:14:in `block (3 levels) in <top (required)>'
(git:master:b7e7a24 △ )(05:49 PM)(barkeep)-> mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 31
Server version: 5.6.17 Homebrew
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> exit
Bye
@ArcTanSusan
Copy link
Author

I started mysql:

 (git:master:b7e7a24 △ )(05:54 PM)(barkeep)-> brew services list
mysql      started     1168 /Users/susan/Library/LaunchAgents/homebrew.mxcl.mysql.plist
 (git:master:b7e7a24 △ )(05:55 PM)(barkeep)-> 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment