Ok, here goes. In a previous question, I had asked how to set up a rails 4 app from github to web faction. I was successful after doing several things.
Heres that question.
Part II of this whole process, is I am having errors AFTER deployment.
Heres the site Im referencing.
Heres the repository on github that I am pulling from for deploying.
Heres the steps I took to deploy:
1) followed the rails documentation on webfactions how to.
2) Added ssh forward agent and the appropriate keys to GitHub to use my local ssh keys for deployment.
3) Changed the appropriate forward agent status to yes in the nginx.conf file.
4) run Cap deploy… moves files to appropriate folder within application.
5) go to celebritypettingzoo.com (just a placeholder till i get the site up and running.) get the error seen there.
6) run rake db:migrate, nothing happens.
7) come back today, try and run it again, and then unable to because of this error:
"ERROR: While executing gem ... (Errno::EACCES) Permission denied - /home/jaronoff/webapps/gems"
Set up a database and change my
database.yml file to point to the new database thats referenced here.
9) Go to step 6 in “Installing Multiple Gems with Bundler” and get the same error from step 7) above.
So, my questions:
- Am I missing something in this whole process that I should be doing thats fundamental to deployment? Keep in mind Im green, and some of these elementary steps are lost on me.
- If I am able to get these server issues figured out, and get the database.yml file, pointing to the proper database on the server, if I run rake db:migrate, it will basically create a migration for all the models in my models folder?
- Lastly, should I put my database.yml file in my gemlock file, so as to not cause security issues? Is that something you dont want to include but overwrite manually on the server? I ended up doing that, but if I add it back into github, I think that currently it will just include my production credentials in that file.
Thank you in advance for the help! Im new to all this, but learning a lot!
- Similiar Post :
- [Dropbox] – Errors when deploying a rails 4 app onto Web Faction
- [Google Drive] – Errors when deploying a rails 4 app onto Web Faction
- [Zippyshare] – Errors when deploying a rails 4 app onto Web Faction
- [Indowebster] – Errors when deploying a rails 4 app onto Web Faction
- [Solidfiles] – Errors when deploying a rails 4 app onto Web Faction
- [Embedupload] – Errors when deploying a rails 4 app onto Web Faction