This project creates and configures a virtual machine to run Rails App.
memory
Virtual Machine memory, set in 2GB
(2048).
swap_size
Virtual Machine swap, set in 512MB
(512).
host_app
location app code on the host machine, this folder is shared to the virtual machine.
virtual_home
Home path in a virtual machine.
virtual_app
App path in a virtual machine.
vagrant up
Install and configure the machine.
vagrant provision
Run recipes into machine.
vagrant ssh
Log-in in the machine.
vagrant destroy
Delete machine.
To see more commands you can run vagrant --help
.
If you want to change default space disk(10GB), you can to use vagrant plugin install vagrant-disksize
. Since terminal run vagrant plugin install vagrant-disksize
and uncomment config.disksize.size = '20GB'
on Vagrantfile.
instance::configure
Create .bash_profile
, add environment and create swap to instance(s).
packages::essential
Install essential package.
packages::extra
Install extra package dependences to run rails app.
nginx::install
Install nginx package.
nginx::configure
Configure nginx and overwrite site.
rails::rbenv
Install rbenv to manage ruby version.
rails::install
Install ruby and rails versions.
app::deploy
Bundle install and decrypt config files.
databases::mongodb
Install MongoDB Server.
puma::configure
Create basic folders and template puma config.
puma::start
Start puma.