当我运行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在那里,文件名也是正确的。
我怎么能解决这个问题?
我试图在一个heroku中运行的两个进程之间建立通信,根据这个文档,这应该是可能的:
Individual processes within a dyno can bind to any address or port they want and communicate among them using e.g. standard TCP
我正在尝试使用http,代码在我的开发机器上运行得很好。但是,当我试图在heroku上执行相同的操作时,源进程无法连接到目标进程。一个进程使用nodejs运行,另一个进程使用python运行。
以下是Procfile的内容:
web: npm run sta
我正尝试使用Unity在本文中注入一个依赖项:
这是我在我的global.asax中拥有的
void ConfigureApi(HttpConfiguration config)
{
var unity = new UnityContainer();
unity.RegisterType<CustomerController>();
unity.RegisterType<TPS.Data.Can.IUnitOfWork, TPS.Data.Can.EFRepository.UnitOfWork>(new Hier
因此,我刚刚将我的twitter机器人推送到Heroku,并设置为每半小时运行一次,并使用Heroku调度程序插件。然而,无论出于什么原因,它都是每10分钟运行一次。这是调度器的错误吗?以下是调度器成功运行它,然后在10分钟后尝试再次运行它时的日志摘录:
2013-01-30T19:30:20+00:00 heroku[scheduler.4875]: Starting process with command `python ff7ebooks.py`
2013-01-30T19:30:21+00:00 heroku[scheduler.4875]: State changed from s
当我尝试做$ heroku ps:scale web=1时,我会发现“找不到那个进程类型”。我查看了其他一些解决方案,这些解决方案建议确保我的Procfile拼写正确并被正确推送,即。
这正是我所得到的错误:
heroku ps:scale web=1
Scaling dynos... !
▸ Couldn't find that process type.
Error: ENOENT: no such file or directory, open '/Users/XXXXXX/.cache/heroku/error.log'
at Objec
我试了很多,但找不到原因。需要帮助。以下是我在Heroku中部署了我的第一个节点应用程序后所写的内容,我的数据库位于MongoLab
heroku ps:scale worker=1
它给了我以下错误。
! No such type as worker.
我的Procfile看起来像这样
web: node server/server.js
下面是我的日志文件
2013-04-20T21:12:31.474207+00:00 app[worker.1]: at startup (node.js:119:16)
2013-04-20T21:12:31.474207+00:00 a
我想将python django dockerapp部署到heroku。但我在psycopg2.OperationalError: could not translate host name "db" to address: Name or service not known之后发现了git push heroku master错误。
文件如下。
我怎样才能解决这个问题?谢谢。
docker-compose.yml
version: '3'
services:
db:
image: postgres
environment:
我在一个Docker容器中创建的web应用程序中工作,我能够上传我的码头图片并通过heroku发布它们,只需:
sudo heroku container:push web -a dashboard-container
sudo heroku container:release web -a dashboard-container
然而,当我通过Go爹地买了一个域名(没有其他选择),然后我把它添加到Heroku
heroku domains:add www.mydashboard.xyz -a dashboard-container
heroku domains:add *.mydashboa
我正在创建运行多个微服务的小型应用程序。我想有这个应用程序可以24/7,所以免费的dyno时间是不够的我。如果我升级到hobby计划,我将得到10 Process Types。
我可以在每个进程( web )上运行另一个微服务吗?还是Heroku只允许我在每个dyno上安装一个web进程,而另一个10 process types则用于扩展我的应用程序?换句话说,如果我需要6个24/7运行的微服务,我应该购买6个业余爱好dynos吗?
我在Heroku日志上看到以下错误:
2018-10-29T00:48:34.198959+00:00 heroku[reminder.1]: State changed from up to crashed
2018-10-29T00:48:59.855673+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=promo-reminder.herokuapp.com request_id=253b5e26-384e-4
在Heroku上,我正在尝试设置一个仅限worker(无web)的dyno。
我的个人资料有:
worker: python common/elections_updater.py
但在我推送并尝试扩展之后,我得到了以下结果:
$heroku scale web=0 worker=1
Scaling web processes... done, now running 0
Scaling worker processes... failed
! No such type as worker
我做错了什么?
为什么heroku运行bash不能工作?
$ heroku登录
Enter your Heroku credentials.
Email: xx@yy.zz
Password (typing will be hidden):
Logged in as xx@yy.zz
$ heroku run bash
▸ No app specified.
▸ Run this command from an app folder or specify which app to use with --app APP
$ heroku run --app bash
▸ Usage:
我有一个刚构建的Rails 6应用程序。
但是,当我尝试使用以下命令行部署到Heroku时:
git push heroku master
我得到了下面的错误后,一些:
yarn install v1.22.4
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.1.1: The platform "linux" is incompatible with this module.
info "fsevents@1.1.1" is an op
我有一个node.js应用程序,在本地运行得很好,但当我在heroku运行时,它退出了,我的状态是0或143,有人知道这意味着什么吗?
2015-04-14T21:14:41.428508+00:00 heroku[api]: Release v8 created by
josef@actionist.se
2015-04-14T21:14:41.569626+00:00 heroku[web.1]: State changed from up to starting
2015-04-14T21:14:44.101446+00:00 heroku[web.1]: Stopping all pr
每次输入英雄式更新时,我都会收到以下消息
This is the legacy Heroku CLI. Please install the new CLI from https://cli.heroku.com
heroku-cli: Updating CLI... already on latest version: 6.12.0-a504409
heroku-cli: Updating plugins... done
! `heroku update` is only available from Heroku Toolbelt.
! Download and insta