GithubHelp home page GithubHelp logo

callmeed / creston Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 156 KB

A very tiny shell script for deploying Rails 4 applications. For those times when Capistrano is overkill & Heroku is too expensive.

License: MIT License

Shell 100.00%

creston's Introduction

Creston

Creston is a very tiny shell script for deploying Rails 4 applications. For those times when Capistrano is overkill & Heroku is too expensive.

Warning

I made Creston because I'm lazy. It sacrifices a lot of things for the sake of brevity. If your Rails app (1) makes money, (2) has mutliple stages or servers, (3) requires easy rollbacks, (4) keeps satellites in orbit, OR (4) you want to deploy from a remote git repo, YOU SHOULD NOT USE IT.

If, however, you have an app that is small, experimental, or MVP-ish in nature, creston can be a great way to get it online quickly.

Installation

Like the town it was named after, Creston is small, ugly, and not a gem. To install Creston, just clone the repo and copy the deploy.sh and .crestonignore files to the root of your Rails project locally.

Then, edit the 4 lines of the deploy.sh file with the details of your remote server. Creston assumes you have public key authentication setup on your server (i.e. you can ssh in without a passoword).

Once, you've done that, just run ./deploy.sh or ./deploy.sh rvm (if your server uses rvm) from the terminal. Your Rails files will rsync to your server, then the bundle cmd will be called, and finally the migration rake task is run.

Digital Ocean Rails Image

One thing that prompted me to build this was Digital Ocean's Ruby-on-Rails one-click image. It's a great way to get a Rails server deployed quickly and cheaply. Creston should work with that configuration almost out of the box. The only thing you have to do is make sure your ssh user (usually rails) has sudo permissions to restart nginx and unicorn.

To-Dos

creston's People

Contributors

callmeed avatar

Watchers

 avatar  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.