Resources:
http://blog.micahchalmer.net/blog/2012/dreamhost-shared-hosting-rbenv
http://spontaneousderivation.com/2012/09/30/rails-3-2-on-a-shared-dreamhost-server/
http://adamish.com/blog/archives/775
Troubleshooting: http://www.jamiestarke.com/2012/01/28/fixed-execjs-runtimeerror-and-fatal-error-v8contextnew-when-deploying-rails-to-shared-hosting/
In the panel, created a new user.
Installed RVM
curl -L https://get.rvm.io | bash -s stable --rails --autolibs=1
Installed ruby 2.0.0 (from binary) See:
Add to .profile:
unset GEM_PATH
Install the bundler gem into the (global? -- append @global) gemset for the desired ruby version. Then install the gems.
rvm 2.0.0-p247
gem install bundler
bundle install
Created a new subdomain and point to the AppName/public folder for the new user
Copy the git repository to the server as an archived repo. See: http://stackoverflow.com/questions/1402390/git-push-clone-to-new-server/1402783#1402783
Used FTP to transfer to the home folder (~/)
Extracted the archive to AppName.git then deleted existing AppName directory (rm -r ./AppName)
Then git clone AppName.git
Ran bundle install from the AppName directory
Add remote to local repository
git remote add master [email protected]:~/AppName.git
Monitoring remotely:
Uptime tool https://github.com/fzaninotto/uptime Running as a daemon https://github.com/nodejitsu/forever (See also http://stackoverflow.com/questions/18333900/deploying-node-js-and-node-js-application-to-raspberry-pi) Installing nodejs on raspberrypi http://blog.rueedlinger.ch/2013/03/raspberry-pi-and-nodejs-basic-setup/ Mongodb http://www.timandpaige.com/technology/installing-mongodb-on-the-raspberry-pi-part-2 https://github.com/RickP/mongopi