Need to remember this. After running vagrant up on a project, the following steps are pretty standard for me to run on my boxed development system. There are steps the box already has. I'll add that here eventually.
sudo apt-get -y update
sudo apt-get -y postgresql then sudo -u postgres psql
gem update --system (to get Ruby gems 2.2 at the time of this writing). Sometimes need to run twice.
gem install foreman -- this is for the proc running unicorn in dev.
bundle install -- prep the Rails app.
export EDITOR=vi just to assure I'm not hitting nano with my default Linux editor.
Based on this website, for SSH pushing to Github: https://help.github.com/articles/generating-ssh-keys
- cd ~/.ssh - ssh-keygen -t rsa -C "YOUR@EMAIL.COM" - enter for default location - PASSWORD TWO TIMES
cat ~/.ssh/id_rsa.pub to print out SSH key so you can copy and paste. Clip is better, but haven't installed it.
Add to Github.
rake db:create db:migrate db:test:prepare assuming you have databases ready for that.
git config --global user.name "Art Mills"
git config --global user.email YOUR@EMAIL.com
git config -e if you want to edit your remote origin with the ssh github info.
For Heroku, run this wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
heroku addons:add pgbackups
heroku addons:add papertrail
git push heroku master
In case of a problem with the deploy at Heroku. run rake rails:update:bin and do your pushes again and it cleared it up for me.
sudo apt-get install build-essential to add things like g++
sudo apt-get install libqt4-dev for qmake and the like.
sudo apt-get install libicu48 for webdriver stuff.
sudo apt-get install xvfb for headless
sudo apt-get install libgmp-dev
sudo apt-get install libgmp3-dev
sudo apt-get install libmysqlclient-devBack