Skip to content

Instantly share code, notes, and snippets.

@abrambailey
Created June 14, 2015 03:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abrambailey/32e5c1b5ec4f0e817a67 to your computer and use it in GitHub Desktop.
Save abrambailey/32e5c1b5ec4f0e817a67 to your computer and use it in GitHub Desktop.
packer rails environment
sudo apt-get -y update
sudo apt-get install -y git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev git rbenv
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
type rbenv
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 2.2.0
sudo apt-get -y install nodejs
gem update --system
gem install bundler mysql rails thin --no-rdoc --no-ri
git clone git://github.com/RailsApps/rails-devise.git
cd rails-devise
bundle install
rails s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment