Vagrant to build up in the HelloWorld sinatra startup
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
chef-repo
.gitignore
.gitmodules
README.md
Vagrantfile

README.md

vagrant-centos-nginx_sinatra

Description

vagrant-centos-nginx_sinatra is setup sample of vagrant and chef-solo.

When Vagrant up, chef-solo will setup following

  • launch VM CentOS
  • reverse proxy by nginx
  • setup rbenv
  • HelloWorld by Sinatra

Install

# install vagrant
$ gem install vagrant
# setup VM
$ vagrant box add centos http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.3-x86_64-v20130101.box

# setup vagrant-centos-nginx_sinatra
$ git clone https://github.com/amazedkoumei/vagrant-centos-nginx_sinatra.git
$ cd vagrant-centos-nginx_sinatra
$ git submodule init
$ git submodule update

# launch VM
$ vagrant up

Access to 192.168.33.11 in your browser When VM has launched.

You can see "Hello! Sinatra is Works!"

Usage

"appuser" has created with installation.

$ vagrant ssh
$ su - appuser

And app is here.

$ ls ~/bin
bundle  config.ru  Gemfile  Gemfile.lock  myapp.rb  rackup.sh

If you want deploy your own app

It would be nice if you install

install command is

$ cd vagrant-centos-nginx_sinatra
$ git submodule add https://github.com/opscode-cookbooks/application.git chef-repo/cookbooks/application
$ git submodule add https://github.com/opscode-cookbooks/application_nginx chef-repo/cookbooks/application_nginx

And setup with referring to the readme…

Thanks

Use as git submodule

Used by git clone