$ cd ~/projects/my_rails_app$ shipit… deploying to engineyard$ cd ~/projects/my_meteor_app$ shipit… uploading to ec2# boom
If you don't have NodeJs installed, get that here
npm install doit
DoIt launches shell commands with key value pairs that are looked up from your projects
.doit file. Just drop in a
.doit file, add the commands in YAML format, and don't repeat yourself again!
watchit: 'compass watch ./client/scss'testit: 'mocha --compilers coffee:coffee-script -R spec ./test/'stageit: 'meteor deploy staging-foo.meteor.com'shipit: 'testit && git checkout master && jitsu deploy'
From your project root, run
doit and pass in a key from your
$ doit watchit>>> Compass is watching for changes. Press Ctrl-C to Stop.
The first example was using an alias to shorten up
doit shipit. Let's add one in below. Open your
.bashrc and add in as many aliases as you'd like.
alias shipit='doit shipit'alias deployit='doit deployit'alias yourfavname='doit keyname'