Some notes about Ruby on Rail app deployment on Heroku
31 Dec 2011If you get an error when you do database migration, during the deployment process:
1 2 3 4 | |
Add PostgreSQL gem, replace the line gem ‘sqlite3’ with:
1 2 3 4 5 6 | |
This ensures the production using PostgreSQL, since Heroku does not support sqlite3.
If after success deployed the rail app, the application gives an error page like: “We’re sorry, but something went wrong…” This is actually a generic error message. It might be caused by the assets loading problem. I did forget to compile the assets before deploy the app.
Run the following command before deployment to compile the assets to public/ directory
</del>
1
| |
Then do the deployment again:
1
| |