https://github.com/paxa/sunraise
Super-fast and simple rails deployment
https://github.com/paxa/sunraise
Last synced: 3 months ago
JSON representation
Super-fast and simple rails deployment
- Host: GitHub
- URL: https://github.com/paxa/sunraise
- Owner: Paxa
- Created: 2010-02-12T22:33:30.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2010-12-16T00:42:14.000Z (over 15 years ago)
- Last Synced: 2025-02-28T20:38:22.727Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 109 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
####Sunraise is super fast, rails oriented deploying tool with clean and dead simple configuration
## Usage
Intalling:
gem install sunraise
cd /my/project/path
sunraise generate
# edit generated sunraise file
Deploying:
sunraise
## How it works
When you have big repository, deploying via capistrano takes a long time, becouse it fetching all project from git every time. You can go to ssh and do *git pull origin*; it will be very fast.
When you deploying with Sunraise, it doing something like this
git reset HEAD --hard
git pull origin master
# restart web server
But also it
* saves previous release
* make links to shared folders
* checks rails for working (runs script/about)
* and run migrations
## Configuring
Deloy config file contain usual ruby code
Available methods:
* **remote_host** - production servername
* **remote_user** - user to login via ssh
* **deploy_to** - path for deploy folder
* **then_link_to** - link to other place, don't make link if not specified
* **git_url** - repository path, it fetches code from it
* **shared_dirs** - (hash) folders what will be stored outside of project, and will be linking to it (usefull for attachments)
* **linked_dirs** - (array) the same with shared_dirs, but stored in other folder
* **local_project_path** - (default '.') project location
* **verbose** - (bool) if true** - showing ssh comands
* **force** - (bool) deploy even no new commits
* **release** - (bool, default true) don't replace with release folder if false
* **remake** - (bool) removes current deploy folder and initiate again
* **test_rails_app** - (bool, default true) test if rails app working, by running script/about
* **auto_migrate** - run rake db:migrate after deploy
* **destroy** - destroy deploy folder on remote host
parameters
* destroy
* remake
* verbose
* force
* release
Can be specified by command line, for more information see
sunraise -h