This project automates the setup of a Rails development environment. It uses Vagrant and Ansible to provision a Virtual Machine with Ubuntu.
You need to install:
Warning! You don't need to open the VirtualBox at all. Everything should be managed by Vagrant!
$ vagrant up # To start the VM
$ vagrant up --provision # To start and privision
$ vagrant reload # To reload your vm
$ vagrant provision # To force the provisionning
$ vagrant status # To check the machine state
$ vagrant halt # To stop the VM
Connect into the VM:
$ vagrant ssh
> cd /www/your_project
Your VM is accessible on the 192.168.10.10
ip address.
For example, open the 192.168.10.10:3000 on your host.
You can change the Vagrantfile
with the desired configuration or change these environment variables:
RAILS_VAGRANT_BOX_FOLDER
: The path to your code folder. Default: '.'RAILS_VAGRANT_BOX_RAM
: The amount of RAM in megabytes. Default: 2048RAILS_VAGRANT_BOX_CPUS
: The amount of CPUs. Default: 2
The default postgres user is postgres
with the password secret
.
- Postgres
- RVM
- Git
- Curl
- htop
- imagemagick
- Tmux
- Vim
- Webp
- Yarn
- Zsh
This project is released under the MIT license.
Studio HB is a Web agency specialized in the custom development.