作业帮 > 综合 > 作业

把英语翻译成中文,求专业翻译。

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/08 07:07:41
把英语翻译成中文,求专业翻译。
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_OPTS美元web:java - cp /目标类:目标/ / *主要的依赖
这个声明一个进程类型、web和所需的命令运行它。网络在这里很重要。它宣称这一过程类型将被附加到HTTP路由堆Heroku,当部署和接收网络流量。
Procfile的语法很重要——Heroku运行指定的命令在这里当它开始一个web测力计,它运行在Unix环境。
当本地运行在Windows下,你可能会收到一个错误,因为Unix的方式传递环境变量($ JAVA_OPTS等)和连接路径(:)是不相容的。
运行您的应用程序在本地Windows下:
创建一个新文件,配置文件窗口
添加一行来指示如何启动应用程序在Windows:web:java目标\ % JAVA_OPTS % - cp类;“主要目标\依赖\ *”
当你看到指令与领班运行您的应用程序,添加一个额外的- f。windows捡起国旗,以确保你的windows特定配置文件。例如:领班开始web f概要文件窗口
概要文件可以包含额外的过程类型。例如,您可以声明一个背景工作进程,进程项的一个队列。
再问: 请问你会java么?我想在免费空间heroku中发布website可都是英文看不懂。(我只认识点英文单词,我是学是语的)
再答: 我现在也在自学Java
再问: 有QQ互相交流下
再答: 1574611502