1

当我发出:heroku ps

我得到:

=== web: `java $JAVA_OPTS -Dspring.profiles.active=prod -jar target/dependency/webapp-runner.jar --port $PORT target/*.war`

有没有办法将弹簧轮廓更改为不同的值?

4

1 回答 1

1

You should be able to change the the spring profile using the cmd-line option -Dspring.profiles.active=<profile name> in your "Procfile" located at the root level of your Heroku app.

Hope this helps, Matthias

于 2013-03-21T17:07:59.643 回答