Bootstraping DigitalOcean server with nginx, and working rails application


Where to start?

Create account on DigitalOcean through link. (Using it you appreciate our efforts into releasing this tutorial with vpsb gem)

  • start by installing our gem
gem install vpsb

  • then run gem by
vpsb i <directory_name_to_create> # f.e. vpsb i my_first_app
cd <directory_name_to_create> # cd my_first_app
vpsb g

In the last step you will be asked for several questions to provide base configuration

At the end you will have working rails app.


ALTERNATIVELY, you may want to build server manually. If so, then

git clone https://github.com/pniemczyk/bootstrap_server_app_in_do.git

  • install all dependencies by script

./init_env.sh #installs all gems and downloads all coookbooks

  • update configuration (read README to know the meaning of files in repo)

  • run bootstrap script ./bootstrap.sh

  • clone our sample rails app

git clone https://github.com/pniemczyk/bootstrap_rails_app_in_do.git

  • run bundle install

  • reconfigure app (enter domain in production deploy files)

  • run cap production deploy

Contributing

  1. Fork it ( https://github.com/[my-github-username]/vpsb/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request