English 中文(简体)
如何暂停Heroku cedar st的加工
原标题:How to suspend process on a Heroku cedar stack

我对Heroku s cedar st有一小 app,使用两个过程。 其中一台操作Sinatra服务器,另一台收集信箱,并插入数据库。 这一项目仍在发展之中,Heroku公司提供一种免费程序,而第二个程序费用则来自资金。

我现在要保持Sinatra服务器的运行,但会不时暂停前线采集器的工作。 如果有的话,请打okuher end tweet_youor.1。 它将暂时停止这一进程,但随后将重新启动。 我没有找到办法对<代码>Procfile中的程序发表意见,因此,我只是从档案中删除了这一过程,并将其推向前进。

您能否从指挥线上超越<代码>Procfile,并停止一个过程? 如果没有,你如何在<代码>中阐明一个程序。 ∗∗∗∗∗

最佳回答

我认为,你可以使用其库库的规模,将任何文件记录都扩大到零:

heroku scale web=0 

More information here: http://devcenter.heroku.com/articles/procfile

问题回答

暂无回答




相关问题
Using Java to retrieve the CPU Usage for Window s Processes

I am looking for a Java solution to finding the CPU usage for a running process in Windows. After looking around the web, there seems to be little information on a solution in Java. Keep in mind, I am ...

What resources are shared between threads?

Recently, I have been asked a question in an interview what s the difference between a process and a thread. Really, I did not know the answer. I thought for a minute and gave a very weird answer. ...

Run a program from PowerShell with timeout

I ll write a script that runs a program and wait for it finished. But if the program is not finished within a specified time I want that the program is killed.

Bring window to foreground after Mutex fails

I was wondering if someone can tell me what would be the best way to bring my application to the foreground if a mutex was not able to be created for a new instance. E.g.: Application X is running ...

Limit the Number of Created Processes

I have two classes: Action class, that has a method for executing VBScript files, and Item class that contains a list of Action instances. My problem is that I want to limit the number of VBScript ...

if-statement always evaluates to TRUE

Is there any reason why this script always returns "running", regardless of whether my process is started or stopped? if ps ax | grep -v grep | grep "processName" > /dev/null then echo $"...

Python library for Linux process management [closed]

Through my web interface I would like to start/stop certain processes and determine whether a started process is still running. My existing website is Python based and running on a Linux server, so ...

热门标签