bash - 如何在heroku procfile中编写多行命令
问题描述
我在 heroku 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
如何格式化 procfile 以便更好看?
解决方案
有用
echo \
hello world
它不起作用
echo\
hello world
在反斜杠之前放置空格,它应该可以工作。