Updating Phishing Frenzy

This guide assumes that you are running your instance of Phishing Frenzy in production mode.

First we will pull down the latest updates using git

$ git pull origin master

Then we will need to run bundle install to ensure that all dependencies gems are installed if any were added with the updates.

$ bundle install

If you receive any missing gem issues after all steps have been completed use the deployment flag.

$ bundle install --deployment

Once the latest code is pulled down we will want to recompile our assets to ensure all is good if any css, js, or images have changed.

$ RAILS_ENV=production rake assets:precompile

Next we want to ensure our database is migrated to the latest schema if any migrations were added with the update.

$ RAILS_ENV=production rake db:migrate

Ensure your custom SITE_URL was not overwriten with the changes by looking at config/application.rb

Make sure that with the changes everything is still owned by www-data

$ sudo chown -R www-data:www-data /var/www/phishing-frenzy

Now we must restart the web service to apply all our update changes

$ sudo apachectl restart