A docking platform enables process management.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
db
doc
lib
log
public
test
vendor
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

Specification

A demo for process management.

structure.v1

Setup

$ git clone git@github.com:ifyouseewendy/baton-web.git
$ bundle install --local

Resource Directory

Create file storage directory.

$ mkdir public/resources

SSH

Add ssh config locally, and add your public key into ~/.ssh/authorized_keys on server.

p7zip

Depend on p7zip for generating OSX/Linux/Win compatible zip file.

Read this post for details http://goo.gl/k0esDi

$ brew install p7zip
$ sudo yum install p7zip p7zip-plugins # CentOS
$ sudo apt-get install p7zip-full p7zip-rar # Ubuntu

Development

File Operation

Both SFTP and Carrierwave save or read files to a uniform path:

"public/resources/#{organization}/#{project.id}/[download|upload]"

So you need to manually create dir public/resources locally, and this dir is auto linked by mina during deployment.

Thor

Use thor to generate organization specific files, then replace it with step jobs.

Mailer

  • Dev by mailcatcher (not included in Gemfile).
  • Use kaitongamc mail in production.

Test

Unit Test

$ rake

Test env

  • FileAgent handles target path based on env option
  • Carrierwave saves file to path based on relevant step env.

Deployment

$ mina deploy