Skip to content

Instantly share code, notes, and snippets.

@giosakti
Created July 1, 2012 06:01
Show Gist options
  • Save giosakti/3027049 to your computer and use it in GitHub Desktop.
Save giosakti/3027049 to your computer and use it in GitHub Desktop.
[RoR] Misc. command

RAILS_ENV=production PIDFILE=./tmp/resque.pid BACKGROUND=yes QUEUE="*" rake resque:work --trace another alternative is to use resque_pool: https://github.com/nevans/resque-pool

rvm --rvmrc --create jruby@projecta

bundle install --path .bundle/gems --binstubs .bundle/bin

sudo env ARCHFLAGS="-arch x86_64" gem install mysql2 -- --with-mysql-config=/opt/local/lib/mysql5/bin/mysql_config

rake environment tire:import CLASS=Event FORCE=true

git submodule update --init

update-rc.d [-n] [-f] name remove update-rc.d [-n] name defaults|multiuser [NN | SS KK]

find . -type f | xargs chmod 644 find . -type d | xargs chmod 755

SET PASSWORD FOR 'abe'@'host_name' = PASSWORD('eagle');

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