我有以下项目结构
在Procfile中,我将web定义为web: gunicorn george_paintings.wsgi
当我在Heroku上部署项目时,我看到Heroku识别了我的Procfile
Starting process with command `gunicorn george_paintings.wsgi`
但是当我得到一个错误ModuleNotFoundError: No module named 'george_paintings'‘如何在我的项目结构上下文中正确地设置wsgi?
我正在尝试使用foreman在本地运行我的应用程序,使用的Procfile与我在Heroku上部署应用程序时使用的Procfile相同,在Heroku上它工作得很好。但是,在我的终端上运行foreman start时,foreman给出了一个错误消息:
line 41: exec: QUEUE=*: not found
我由此得出的结论是,foreman不会将QUEUE=*识别为命令。那么为什么它能在Heroku上工作呢?我该怎么做才能完全像在生产模式下一样运行该命令呢?
我有一个procfile:
web: node index.js
当我运行"heroku scale web=1“时,我得到了错误Scaling web processes... Record not found。我找不到任何关于这个错误的解释,也找不到可能导致这个错误的原因,但据我所知,这意味着heroku scale无法在它试图使用的procfile中找到"web“条目。
我已经部署了我的应用程序,我可以在服务器上运行heroku run node index.js,看不到任何错误。我可以在本地运行foreman start,它会启动我的应用程序的一个全功能实例。
据我所知
我按照这个流星构建包()的步骤,尝试推送到heroku。但它失败了,出现了无法识别的错误。以前有没有人看到过这个问题?
$ git push heroku master
-----> Heroku receiving push
-----> Fetching custom buildpack... done
-----> meteor app detected
% Total % Received % Xferd Average Speed Time Time Time Current
Heroku将不会重新加载我已更正的Procfile
我运行了git status,它显示了Procfile,我意识到我用小写的p拼写了Procfile。我看到了错误,并更新了项目中的文件名,但当我保存并再次运行git status时,它仍然显示为小写。当然,现在它不会在Heroku上显示该网站。
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>...&
我正在尝试移植一个应用程序在Heroku上运行,但遇到了一个问题。这是一个Python3/Django应用程序,web应用程序(使用gunicorn)运行正常。当我将一个worker添加到我的Procfile中时,它崩溃了,并显示以下消息:
2016-01-13T16:40:07.985725+00:00 heroku[worker.1]: Starting process with command `celery -A app worker`
2016-01-13T16:40:08.664327+00:00 heroku[worker.1]: State changed from start
这是我第一次部署到heroku。我试图用postgreSql项目部署Spring。
当我第一次部署到heroku时,它说我错过了Procfile。然后,我添加了Procfile中的文本,就像heroku网站中的例子一样
“-cp目标/类:”目标/依赖/*“HomeController”
有"HomeController“。下面是HomeController.java内部的内容
/**
* Handles requests for the application home page.
*/
@Controller
public class HomeController {
我正在尝试在Heroku上托管一个Gradle项目,并通过从Procfile中调用"gradlew.bat run“来运行它。从命令行调用gradlew可以很好地工作。在命令行中从Procfile调用它可以很好地工作,但无论出于什么原因,在Heroku上部署时调用Procfile本身都会在启动后立即返回以下错误:
heroku[web.1]: State changed from starting to crashed heroku[web.1]: Process exited with status 127 app[web.1]: bash: gradlew: command not
我正试图在Heroku上与Django合作,并使用它的Django模板 来学习本教程。
但是,当我运行'heroku本地网站‘时,它总是找错目录。我试着把这个项目
(env) D:\Study\Workbench\heroku-testing\testing\env\codeShareApp>heroku local web
[WARN] No ENV file found
[WARN] ENOENT: no such file or directory, open 'C:\Users\William\Procfile'
[FAIL] No Procfile a
我在React项目中使用heroku进行本地测试。
Procfile.dev:
web: make start-backend
frontend: make start-frontend
所以,我用"heroku local“命令在本地启动了它,它起作用了-启动了webpack,启动了webpack-dev-server,然后启动了应用程序。
今天我得到了一个答案:
√ chatty % heroku local
[WARN] ENOENT: no such file or directory, open 'Procfile'
[OKAY] package.js
当我运行heroku ps:scale web=1时,我得到的错误低于错误。
Scaling dynos... failed
No such process type web defined in Procfile.
我的Procfile包含下面的代码。
worker: python vot.py
我也做了heroku run bash,Procfile在那里,文件名也是正确的。
我怎么能解决这个问题?
当将我的laravel应用程序部署到heroku时,我发现Procfile失败了。我该如何创建这个?这份文件需要什么。我不能通过浏览器访问应用程序,因为403禁止错误。
将文件推送到heroku时的确切错误消息:
NOTICE: No Procfile, using 'web: vendor/bin/heroku-php-apache2'.
我正在尝试将一个烧瓶应用程序部署到heroku,但是每当我试图运行Scaling dynos... ! ▸ Couldn't find that process type (web).时,我都会不断地得到错误:heroku ps:scale web=1。
然而,当我运行heroku ps:scale时,它告诉我我需要Upload a Procfile to add process types.
我在根目录中有一个Procfile,它是大写的,没有任何文件扩展名。我已经尝试删除和重新创建Procfile,但这并没有产生任何结果。
我怎样才能让Heroku认出我的过程文件?
以下是我一