Préparez-vous au déploiement Heroku conformément à la documentation officielle Heroku ci-dessus.
pom.xml
・ ・ ・
<packaging>war</packaging>
・ ・ ・
<dependencies>
・ ・ ・
</dependencies>
<build>
...
<plugins>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals><goal>copy</goal></goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.heroku</groupId>
<artifactId>webapp-runner</artifactId>
<version>9.0.30.0</version>
<destFileName>webapp-runner.jar</destFileName>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Procfile
web: java $JAVA_OPTS -jar target/dependency/webapp-runner.jar --port $PORT --enable-basic-auth --basic-auth-user [Nom d'utilisateur] --basic-auth-pw [mot de passe] target/*.war
Recommended Posts