Skip to content

kalelc/workenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Work Environment to RubyOnRails

This project creates and configures a virtual machine to run Rails App.

Vagrant

Technical Description
Variables

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.

Commands

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.

Custom disk space with vagrant plugin

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.

Chef Recipes

Description
Instance

instance::configure Create .bash_profile, add environment and create swap to instance(s).

Packages

packages::essential Install essential package.

packages::extra Install extra package dependences to run rails app.

Nginx

nginx::install Install nginx package.

nginx::configure Configure nginx and overwrite site.

Rails

rails::rbenv Install rbenv to manage ruby version.

rails::install Install ruby and rails versions.

App

app::deploy Bundle install and decrypt config files.

Databases

databases::mongodb Install MongoDB Server.

Puma

puma::configure Create basic folders and template puma config.

puma::start Start puma.

About

Create a work environment to RoR in Vagrant

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published