Steps on vagrant after first up.

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.

  1. sudo apt-get -y update

  2. sudo apt-get -y postgresql then sudo -u postgres psql

    • create user vagrant with password 'password';
    • alter user vagrant createdb;
    • \q
  3. gem update --system (to get Ruby gems 2.2 at the time of this writing). Sometimes need to run twice.

  4. gem install foreman -- this is for the proc running unicorn in dev.

  5. bundle install -- prep the Rails app.

  6. export EDITOR=vi just to assure I'm not hitting nano with my default Linux editor.

  7. Based on this website, for SSH pushing to Github:

- cd ~/.ssh
- ssh-keygen -t rsa -C "YOUR@EMAIL.COM"
- enter for default location
  1. cat ~/.ssh/ to print out SSH key so you can copy and paste. Clip is better, but haven't installed it.

  2. Add to Github.

  3. rake db:create db:migrate db:test:prepare assuming you have databases ready for that.

  4. git config --global "Art Mills"

  5. git config --global

  6. git config -e if you want to edit your remote origin with the ssh github info.

  7. For Heroku, run this wget -qO- | sh

  8. heroku keys:add

  9. heroku login

  10. heroku create

  11. heroku addons:add pgbackups

  12. heroku addons:add papertrail

  13. git push heroku master

  14. 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.

  15. sudo apt-get install build-essential to add things like g++

  16. sudo apt-get install libqt4-dev for qmake and the like.

  17. sudo apt-get install libicu48 for webdriver stuff.

  18. sudo apt-get install xvfb for headless

sudo apt-get install libgmp-dev

sudo apt-get install libgmp3-dev

sudo apt-get install libmysqlclient-dev

paperclip paperclip