Update to current code in development

manxingxing edited this page Sep 3, 2012 · 14 revisions

Back to For Developers

Get the newest code:

git pull

Update Gems:

bundle install

Change the database to the newest version:

rake db:migrate

Start the background worker:

This depends on the way you deploy your background workers. If you run it as a service. you can run:

sudo service delayed_job_production restart

replace "delayed_job" with your actual service name. If you run it via: script/delayed_job_production start, you need run:

script/delayed_job_production restart

#######Is this needed in production server?

##rake jobs:work

Tell phusion passenger to restart the Rails application:

touch "tmp/restart.txt"