Last active
August 29, 2015 14:10
-
-
Save tonytonyjan/acb1d19e399a52b10c5c to your computer and use it in GitHub Desktop.
Vagrantfile Rails development.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
locale-gen UTF-8 | |
apt-get update | |
sudo apt-get -y install ruby-full sqlite3 libsqlite3-dev postgresql libpq-dev nodejs | |
sudo -u postgres createuser -s vagrant | |
gem install rubygems-update | |
update_rubygems | |
gem install rails |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.provision :shell, path: "bootstrap.sh" | |
config.vm.network :forwarded_port, guest: 3000, host: 3000 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment