GithubHelp home page GithubHelp logo

tkhduracell / sh_sunzi_recipes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from crslade/sunzi-recipes

0.0 3.0 0.0 118 KB

All the recipes I used to provision Ubuntu 14.04 LTS for a Capistrano Deployment. Installs rbenv, nginx (for unicorn), postgres, nodejs, and ufw.

sh_sunzi_recipes's Introduction

Server provisioning recipes

These recipes will provision a server for a Rails 4.1 app, using Capistrano 3.1, for deployment. It will install nginx, rbenv (and Ruby), node.js, and postgres. It also creates a deploy user, and sets up the environment for deployment.

This recipe installs ppa's to make sure apt installs the latest software.

Installation

You need sunzi.

gem install sunzi

Steps

  1. Copy your ssh public key into files/deploy_key.
  2. Edit sunzi.yml with your app name and postgres information.
  3. Make sure it will setup things the way you want.
  4. This script will setup postgres for password authentication, instead of authentication based on the machine's user.
  5. Make sure you can ssh to your server with the root account. You might want to copy your ssh public key into /root/.ssh/authorized_keys, so you don't have to type the password.
  6. sunzi deploy [HOST/IP].

Next, you can follow a guide by Ben Dixon on how to deploy your app using capistrano.

Customization

The main script is install.sh. Here you can change which recipes will be run, do special stuff, etc. The recipes reside in (surprise!) recipes/. You can add new ones if you like. If you want to know more (attribute variable usage, etc.) consult the sunzi documentation.

sh_sunzi_recipes's People

Watchers

James Cloos avatar Filip Lindqvist avatar  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.