Skip to content

Instantly share code, notes, and snippets.

@ktkaushik
Created September 7, 2012 07:23
Show Gist options
  • Select an option

  • Save ktkaushik/3664075 to your computer and use it in GitHub Desktop.

Select an option

Save ktkaushik/3664075 to your computer and use it in GitHub Desktop.
steps for swapnil
# Copy paste line by line in your terminal. On the same window.
# Do not copy paste the sentences with '#' in teh beginning
heroku login
git checkout master
git merge dev
git push origin master
git push heroku master
heroku run rake db:schema:load
heroku run rake db:seed
heroku run rake assets:precompile
heroku run console
# You will have the rails console open.
User.create(name: "swapnil", password: "swapnil", email: "swapnil@devengers.com", username: "swapnil")
# you will get an email on swapnil@devengers.com. Confirm your email.
# Sign in on the website and then add an app.
# In the heroku rails console :
u=User.find_by_username("swapnil")
a=u.apps.first
a.update_attributes(uuid: "enter the UUID that you have in the test app you have built for heroku")
u.update_attributes(api_key: "Enter the api_key that you have in hte test app built for heroku")
# Email me once done !
Thanks.
commit and push the code on master
capify .
cap deploy:setup
cap deploy:check
cap deploy
ssh swapnil@our_server_ip
cd ~/www/devengers.com/current
rake assets:precompile
RAILS_ENV=production rake db:migrate
sudo service nginx restart
sudo service thin restart
RAILS_ENV=production rake jobs:clear if necessary
RAILS_ENV=production script/delayed_job restart
Refresh the browser and check.
IF there are any errors then,
cd ~/www/devengers.com/current/log
vi thin.3000.log
That file will give you the errors, if any.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment