Define a Procfile
Use a Procfile, a text file in the root directory of your application, to explicitly declare what command should be executed to start your app.
The Procfile in the example app you deployed looks like this:
web: java $JAVA_OPTS -cp target/classes:target/dependency/* Main
This declares a single process type, web, and the command needed to run it. The name web is important here. It declares that this process type will be attached to the HTTP routing stack of Heroku, and receive web traffic when deployed.
The syntax of the Procfile is important - Heroku runs the exact command specified here when it starts a web dyno - and it runs it in a Unix environment.
When running locally under Windows, you may receive an error because the Unix way of passing in environment variables ($JAVA_OPTS) and of concatenating paths (:) is incompatible.
To run your apps locally under Windows:
Create a new file, Procfile.windows
Add a line to indicate how to start the app under Windows: web: java %JAVA_OPTS% -cp target\classes;"target\dependency\*" Main
When you see instructions to run your app with foreman, append an extra -f Procfile.windows flag to ensure your Windows-specific Procfile is picked up. For example: foreman start web -f Procfile.windows
Procfiles can contain additional process types. For example, you might declare one for a background worker process that processes items off of a queue.
请问你会java么?我想在免费空间heroku中发布website可都是英文看不懂。(我只认识点英文单词,我是学是语的)
追答我现在也在自学Java
追问有QQ互相交流下
追答1574611502
本回答被提问者采纳把英语翻译成中文
可以翻译为“Translate English into Chinese”
有关Translate的知识如下
translate
vt. 翻译;转化;解释;转变为;调动
vi. 翻译
[ 过去式 translated 过去分词 translated 现在分词 translating ]
词组短语
translate into 翻译成
同近义词
vt. 翻译;转化;解释;转变为;调动
remove , expound
vi. 翻译
interpret
同根词
词根: translate
adj.
translatable 可译的;能译的;可转移的
n.
translation 翻译;译文;转化;调任
translator 译者;翻译器
词义辨析
transmit, transfer, transcend, transport, translate
transmit 发射,播送;传播,传染;留传,遗传;
transfer 转移,迁移;
transcend 超过,翻越;
transport 运输,运送,输送;
translate 翻译;说明,使变成
例句
My friend will translate for me.
我朋友将给我当翻译。
So she took me along to translate.
所以她拉上我帮她翻译。
These poems don't translate easily.
这些诗不好翻译。