Skip to content

Instantly share code, notes, and snippets.

@sistlm
Forked from jordansissel/Procfile
Created December 15, 2021 17:07
Show Gist options
  • Save sistlm/05f0aa7780b993eb78492c5ece07af98 to your computer and use it in GitHub Desktop.
Save sistlm/05f0aa7780b993eb78492c5ece07af98 to your computer and use it in GitHub Desktop.

Revisions

  1. @jordansissel jordansissel created this gist Apr 5, 2012.
    2 changes: 2 additions & 0 deletions Procfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    # Only listen on http; disable ajp and https
    web: java -jar jenkins.war --httpPort=$PORT --ajp13Port=-1 --httpsPort=-1
    7 changes: 7 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    # Jenkins on Heroku

    1. Download jenkins.war
    2. Create pom.xml (it'll be pretty much empty)
    3. Create Procfile to do 'java -jar jenkins.war' etc...

    Deploy!
    12 changes: 12 additions & 0 deletions pom.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
    Just need a plain and mostly empty pom.xml for Heroku to detect that this is a Java application
    -->
    <project xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.example</groupId>
    <version>1.0-SNAPSHOT</version>
    <artifactId>helloworld</artifactId>
    </project>