Note: this rough draft has turned into https://github.com/maxogden/art-of-node#art-of-node
go to https://github.com/maxogden/art-of-node#art-of-node to view the newer versions of this document
| require 'fileutils' | |
| # Warning: The following deploy task will completely overwrite whatever is currently deployed to Heroku. | |
| # The deploy branch is rebased onto master, so the push needs to be forced. | |
| desc "Deploy app to Heroku after precompiling assets" | |
| task :deploy do | |
| deploy_branch = 'heroku' | |
| remote = 'heroku' | |
| deploy_repo_dir = "tmp/heroku_deploy" |
go to https://github.com/maxogden/art-of-node#art-of-node to view the newer versions of this document
Node.js is just JavaScript running on the server side. That's it. That's all there is to it.