3 ms·
This is a good start for setting up rails on your development box, but when it comes to deploying it to a clean server, just following these instructions will g
by Sapient 16y ago
This is a good start for setting up rails on your development box, but when it comes to deploying it to a clean server, just following these instructions will give you a headache fast.
This tutorial, and some others on this guys blog helped me do just that.
http://kris.me.uk/2010/08/30/rails3-hosting-all-in-one.html http://kris.me.uk/2010/08/30/rails3-hosting-all-in-one.html
- ryanbigg 16y agoCould you explain how these instructions would give you a "headache fast"?
- Sapient 16y agoI see you have added a section about the required libs in the post, it should give no problems now. If you could include a bit about installing rvm system wide and maybe setting up passenger, it would have saved me a lot of time and grief a week ago.
- fossuser 16y agoEdit: After recursively chowning the .gem folder in my home directory to my user it worked. I spent a good amount of time trying to get this to work a few days ago, but had issues with rvm. Thought this post might help, but in a fresh 10.10 install if rvm is used when trying gem install rails I get the following : While executing gem ... (Errno::EACCES) Permission denied It shouldn't be denied though since it's in the home directory. The only way I could get an up to date ruby and rails installed was by removing rvm (rvm implode) and manually installing 1.9.2 and then following the update-alternatives instructions located here: http://ubuntuforums.org/showthread.php?p=10274200#post10274200 http://ubuntuforums.org/showthread.php?p=10274200#post102742... Is anybody else successfully accomplishing it the way this blog suggests? The internet is relatively sparse with up to date instructions for installing rails without problems on Ubuntu, it makes me miss the rolling release model of arch where everything just worked instantly.
- Sapient 16y agoDid you install rvm locally, or system wide? I have never had a real problem installing rails with rvm on 10.10, I just had to apt-get the required libs for ruby, and then everything else worked fine (with a normal rvm install). I would try rvmsudo gem install rails, who knows... Also remember, when you run the rvm install script or any of the following rvm commands, dont sudo it for a normal installation.
- fossuser 16y agoI installed it locally, but for some reason the .gem folder was root user and not my local user so it would not allow me to run gem install rails unless I used sudo. To fix this I had to chown the .gem folder to my user and then everything worked as it should. I just found it strange that I was the only one that seemed to have this issue since it looks like it should happen to everyone who follows the steps.
- deleted 16y ago[deleted]