Created
July 3, 2012 23:19
-
-
Save sody/3044101 to your computer and use it in GitHub Desktop.
Heroku Migration
This file contains 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
$ heroku login | |
$ heroku create <app-name> |
This file contains 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
$ git remote add heroku git@heroku.com:<app-name>.git | |
$ git fetch heroku | |
$ git merge -s ours heroku/master |
This file contains 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
web: java $JAVA_OPTS -jar target/dependency/jetty-runner.jar --port $PORT target/*.war |
This file contains 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
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-dependency-plugin</artifactId> | |
<version>2.4</version> | |
<executions> | |
<execution> | |
<phase>package</phase> | |
<goals><goal>copy</goal></goals> | |
<configuration> | |
<artifactItems> | |
<artifactItem> | |
<groupId>org.mortbay.jetty</groupId> | |
<artifactId>jetty-runner</artifactId> | |
<version>8.1.4.v20120524</version> | |
<destFileName>jetty-runner.jar</destFileName> | |
</artifactItem> | |
</artifactItems> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> |
This file contains 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
$ git push heroku master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment