I have a long command line in heroku procfile and want to break it into multiple lines.
Using backslash like below didn't help...
Procfile:
web: java -Dserver.port=$PORT\
-Djavax.net.ssl.keyStoreType=pkcs12\
-Djavax.net.ssl.keyStore=$SOAP_SSL_KEYSTORE_PATH\
-Djavax.net.ssl.keyStorePassword=$SOAP_SSL_KEYSTORE_PASSWORD\
$JAVA_OPTS -jar pwr-mobile-rest-api-jar/target/pwr-mobile-rest-api-jar-runnable.jar
How can I format the procfile for better looking?
You can run multiple command inside Procfile using sh -c command : worker: sh -c 'firstCommand && secondCommand && etc...' Notes : Procfile should be at the project root level.
It works
echo \
hello world
It doesnt work
echo\
hello world
Put space before backslash and it should work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With