Rails generator and Capistrano recipes for deploying to a Joyent Shared Accelerator
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
generators/joyent_config
lib/joyent_deployment
recipes
README

README

===============================================================================
= Install this plugin                                                         =
===============================================================================
git submodule add git://github.com/matthewtodd/joyent_deployment.git vendor/plugins/joyent_deployment
git submodule init


===============================================================================
= Create Virtual Server                                                       =
===============================================================================
https://virtualmin.joyent.us/woodward


===============================================================================
= Request a Port Number                                                       =
===============================================================================
http://help.joyent.com/index.php?pg=request


===============================================================================
= Create Database                                                             =
===============================================================================
I think it'll play nicer with Virtualmin to do this through the web.
https://virtualmin.joyent.us/woodward


===============================================================================
= Configuration                                                               =
===============================================================================
script/generate joyent_config PORT [DOMAIN]


===============================================================================
= Deploy                                                                      =
===============================================================================
git commit
git push
cap deploy:setup
cap deploy:migrations


===============================================================================
= Change DocumentRoot                                                         =
===============================================================================
https://virtualmin.joyent.us/woodward

A. Select Domain from Dropdown
B. Services -> Configure Website
   1. Document Options: Document Root Directory; Save.
   2. Directory: Path; Save.
   3. Apply Changes


===============================================================================
= Solaris Bootup Action                                                       =
===============================================================================
https://virtualmin.joyent.us/woodward

A. Select Domain from Dropdown
B. Services -> Bootup Actions
   1. Add a new bootup action.
   2. Action Name:                 APPLICATION
      Description:                 Starts the APPLICATION rails application.
      Started:                     Yes
      Commands to run at startup:  /usr/local/bin/mongrel_rails start -c /users/home/matthew/domains/DOMAIN/var/www/current -p PORT -d -e production -a 127.0.0.1 -P /users/home/matthew/domains/DOMAIN/var/run/dispatch.PORT.pid
      Commands to run on shutdown: Kill all started processes
   3. Save.