Giter VIP home page Giter VIP logo

cap3rails's Introduction

Cap3 standalone deploy tool

Why?

  1. I want to keep it separately. Keep deploy tool in rails app it's not best idea
  2. I want to have independent deploy tool for many rails apps
  3. I want to restrict access to deploy tool in team. Juniors are shouldn't touch it.
  4. It's should be easy to maintain and improve
  5. It's should be base for branches: cap3node, cap3django, cap3php etc.

How to use?

  1. Clone cap3rails
  2. Copy config file cp settings/production.yml.example settings/production.yml
  3. Puts your settings in config file
  4. cap production deploy
  5. Include App nginx config into your main nginx config include /var/www/USER/data/www/MY_APP/shared/web_server/nginx/config;
  6. restart nginx /etc/init.d/nginx restart or service nginx restart
  7. Profit!

Who in the box?

  1. Settingslogic for config files
  2. Nginx, Unicorn config templates
  3. Only production stage
  4. Ready for small projects, but not for giants

Status of repo

It's a draft. It's need a lot of work, but it'a alive! You can try it.

Plans

  1. To improve Unicorn configs
  2. To add Monit configs
  3. To drink tea with piece of chocolate

Workflow

Access to server

Check acceess to server

ssh [email protected]

ssh [email protected]

Generate your public key

How to

Authorize your key on server

cat ~/.ssh/id_rsa.pub | ssh [email protected] 'cat >> ~/.ssh/authorized_keys'

Extend your nginx config with:

include /var/www/USER/data/www/MY_APP/shared/web_server/nginx/config;

Let's play!

cap ENV_NAME TASK_NAME

For example:

cap production info:image_magick
cap production info:gemset

Deploy your App

cap production deploy

Nginx restart

cap production nginx:restart

Destroy App

Is it ugly? Just destroy it!

Stop Unicorn and destroy.

cap production destroy:soft

or destroy file structure right now!

cap production destroy:hard

The MIT License (MIT)

Copyright (c) [2013] [Ilya N. Zykin, github/the-teacher]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

cap3rails's People

Contributors

the-teacher avatar

Watchers

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