Skip to content

Instantly share code, notes, and snippets.

@montogeek
Last active August 29, 2015 14:10
Show Gist options
  • Select an option

  • Save montogeek/23c3209b43c95b8217b2 to your computer and use it in GitHub Desktop.

Select an option

Save montogeek/23c3209b43c95b8217b2 to your computer and use it in GitHub Desktop.
Install Ember + RoR on a new Ubuntu 14.04 vagrant machine
// Rails
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable --ruby
. /home/vagrant/.rvm/scripts/rvm
rvm gemset create ember-crm
rvm gemset use ember-crm
gem install rails
rails new ember-crm -d postgresql //Problem 1
// Solution 1
gem install pg -v '0.17.1' // Problem 2
// Solution 2
sudo apt-get install nodejs
sudo apt-get install postgresql postgresql-contrib
rake db:create // Problems: Vagrant role does not exists
// "createuser --interactive" Does not work because is the first time and by default postgress use ident authentication method.
// Solution:
sudo su - postgres
createuser --interactive // User: vagrant; SuperAdmin: Yes
rake db:create // Done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment