Skip to content

Instantly share code, notes, and snippets.

@contextmedia
Created March 10, 2014 17:07
Show Gist options
  • Save contextmedia/9469283 to your computer and use it in GitHub Desktop.
Save contextmedia/9469283 to your computer and use it in GitHub Desktop.
ubuntu@ip-10-169-24-111:~$ bundle exec rails runner "File.open( 'greatist_since_today.json', 'w') {|f| f.write( GreatistApi.new.articles_since( 2.years.ago) ) }"
Could not locate Gemfile
ubuntu@ip-10-169-24-111:~$ cd www/mdm-server/current
ubuntu@ip-10-169-24-111:~/www/mdm-server/current$ bundle exec rails runner "File.open( 'greatist_since_today.json', 'w') {|f| f.write( GreatistApi.new.articles_since( 2.years.ago) ) }"
2014-03-10T17:05:42Z 8455 TID-bckxo INFO: Sidekiq client with redis options {}
/home/ubuntu/www/mdm-server/shared/bundle/ruby/1.9.1/gems/mysql2-0.3.15/lib/mysql2/client.rb:67:in `connect': Access denied for user 'root'@'localhost' (using password: YES) (Mysql2::Error)
from /home/ubuntu/www/mdm-server/shared/bundle/ruby/1.9.1/gems/mysql2-0.3.15/lib/mysql2/client.rb:67:in `initialize'
from /home/ubuntu/www/mdm-server/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.14/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `new'
from /home/ubuntu/www/mdm-server/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.14/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `mysql2_connection'
from /home/ubuntu/www/mdm-server/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment