Created
October 13, 2011 03:32
-
-
Save dakatsuka/1283293 to your computer and use it in GitHub Desktop.
Capistrano recipe for Node.js + CoffeeScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace :deploy do | |
| task :compile, :roles => :app do | |
| run <<-CMD | |
| export PATH=#{node_path}:$PATH && | |
| cd #{latest_release} && | |
| mkdir lib && | |
| coffee -o lib -c src | |
| CMD | |
| end | |
| end | |
| after 'deploy:finalize_update', 'deploy:compile' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment