Script to deploy your Ruby on Rails application to Heroku in one command (Windows)
May 17th, 2010 // 2:45 am @ Aymeric // No Comments
Simply save this file at the root of your Ruby on Rails project and call in your prompt “deploy.bat ‘Your commit comment’”
@ECHO OFF IF [%1]==[] GOTO Syntax CALL git add . CALL git commit -m %1 CALL git push heroku master CALL heroku rake db:migrate GOTO:EOF :Syntax ECHO deploy.bat [ comment ] ECHO __ ECHO Please provide a comment for commit action :End
Other articles you might like
Category : Programming tips and tricks &Startup tips and tricks
