Giter Club home page Giter Club logo

osx-vagrant-sandbox's Introduction

osx-vagrant-sandbox

Vagrant configulation sample. Double click *.command file to provisioning, run servers, reset database, etc.

Demo

  1. Install VirtualBox - easy
  2. Install Vagrant - very easy
  3. Dobule click start.command
  4. Wait few minutes...
  5. Access http://192.168.33.10:8080/ and you can access Rails through Nginx

Provisioning

Add script to provision.sh with version number(+1), and commit.

Ask team members to double click provision.command.

The provision.sh executes only the blocks with new version numbers. The version number is saved to /root/.provisioning_version.

Commands

sandbox/bin/*.command scripts SSH login to the VM and execute sandbox/bin/local/*.command.

vagrant ssh -c '/vagrant/sandbox/bin/local/start.command'

Also, you can run sandbox/bin/local/*.command directly on OSX.

Servers

sandbox/bin/start.command starts servers using foreman.

See Procfile to see what foreman do.

And you can foreman start locally, if you want. Procfile works on both VM and OSX. Just double click sandbox/bin/local/start.command to start foreman.

Shared folder

Project root directory mounted to /vagrant.

Frontend-engineers, designers, or editors can edit HTML, CSS, JS, templates on their local machine. Any changes can see througe VM immediately.

Configuration files

All configuration files should be added to the repository.

Team members fetch the configuration files, restart VM, double click provision.command if required, and all works fine!

Maintenance is not so difficult, because every members can use this sandbox on VM or OSX, in everydays development.

osx-vagrant-sandbox's People

Contributors

koseki avatar

Watchers

Yuki Matsukura avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.