Script to deploy your Ruby on Rails application to Heroku in one command (Windows)

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

Tags: , ,

Leave a comment