procfile的替代

时间:2018-06-22 16:35:00

标签: heroku

所以我有一个这样的procfile

library(fitdistrplus)
IN <- c(3.5, 5.75, 9, 13.25, 13, 9.5, 9.25, 6.75, 7, 4.25, 3.25, 1.75, 0)
OUT <- c(0.25, 2, 5.25, 8.5, 10.5, 11, 11.75, 9.25, 9.5, 7, 3.75, 4, 3.5)
dat <- data.frame(IN, OUT)
rownames(dat) <- c("10~11", "11~12", "12~13", "13~14", "14~15", "15~16", 
                   "16~17", "17~18", "18~19", "19~20", "20~21", "21~22", "22~23")

# Obtain a Cullen and Frey graph
descdist(dat$IN, discrete = FALSE)

# Fit a distribution and inspect it 
normal_distribution <- fitdist(dat$IN, "norm")
plot(normal_distribution)

此procfile用于运行基于Java的仅工作程序应用。

不幸的是,以某种方式,Heroku不再“有效”。为了明确我的意思,使用完全相同的代码,我可以在旧的现有heroku实例上进行部署和重新部署,但是我不再可以在新的heroku实例中进行部署。

如果我尝试部署它,这是出现的错误实例。

worker: sh target/bin/worker

从我学到的错误代码127表示找不到命令,在这种情况下我认为这意味着命令2018-06-22T08:27:06.132729+00:00 app[api]: Release v12 created by user 2018-06-22T08:27:07.347760+00:00 app[api]: Starting process with command `migrate` by user 2018-06-22T08:27:11.989868+00:00 heroku[run.6354]: Awaiting client 2018-06-22T08:27:12.015928+00:00 heroku[run.6354]: Starting process with command `migrate` 2018-06-22T08:27:12.048122+00:00 heroku[run.6354]: State changed from starting to up 2018-06-22T08:27:16.879988+00:00 heroku[run.6354]: State changed from up to complete 2018-06-22T08:27:16.853176+00:00 heroku[run.6354]: Process exited with status 127 2018-06-22T08:28:42.749612+00:00 app[api]: Starting process with command sh target/bin/worker by user 不存在。

但是,我试图通过运行该程序

sh

以及通过heroku bash都起作用。

问题在于,要使此功能正常运行,我需要维持此bash运行24/7,以使dyno连续运行。显然,我没有资源,如果有资源,我可以将其部署在自己的服务器中。

因此,我正在寻找替代方案。

0 个答案:

没有答案