Skip to content

Instantly share code, notes, and snippets.

@sody
Created July 3, 2012 23:19
Show Gist options
  • Save sody/3044101 to your computer and use it in GitHub Desktop.
Save sody/3044101 to your computer and use it in GitHub Desktop.
Heroku Migration
$ heroku login
$ heroku create <app-name>
$ git remote add heroku git@heroku.com:<app-name>.git
$ git fetch heroku
$ git merge -s ours heroku/master
web: java $JAVA_OPTS -jar target/dependency/jetty-runner.jar --port $PORT target/*.war
<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>
$ git push heroku master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment