问题标签 [procfile]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ruby-on-rails - How do you run multiple DelayedJob workers on a single Heroku dyno?
I am having trouble getting my dynos to run multiple delayed job worker processes.
My Procfile looks like this:
and my delayed_job
script is the default provided by the gem:
When I try to run this either locally or on a Heroku dyno it exits silently and I can't tell what is going on.
Any help with either how to debug the issue or suggestions about other ways to go about running multiple workers on a single dyno it would be greatly appreciated.
ruby-on-rails - 按照 Heroku Bamboo 向 Cedar 迁移指南添加 Procfile 后的“捆绑程序:找不到命令:独角兽”
正如 Bamboo to Cedar 迁移指南所述,我将其添加Procfile
到我的 Heroku 应用程序中:
然后我跑过去bundle install
推。现在服务器不再启动:
我究竟做错了什么?
bash - 如何在 Bash 中创建一个开销为零但给我一个进程 ID 的进程
对于那些知道你在说什么的人,我为扼杀我将要表达这个问题的方式道歉。我对bash一无所知。有了这个警告,让我拿出我的切肉刀......
我正在构建一个 Rails 应用程序,它具有所谓的 procfile,它设置需要在不同环境中运行的任何进程
例如
这些行中的每一行都指定了要运行的进程。它还期望在进程启动后返回一个 pid。语法是
然而,最后一个过程,proxylocal
实际上只是开始了一个开发过程。在生产中它什么也没做。
不幸的是,这会导致 Procfile 阻塞,因为它需要返回一个进程 ID。那么是否有一些超级简单、零开销的过程,我可以在这种情况下产生只是为了让 procfile 满意?
heroku - 如何为 Windows 创建 Heroku procfile?
我是一个试图制作 django 应用程序的新手,但不幸的是我的操作系统是 windows。Heroku docs 是为 linux 编写的,所以我无法在 windows 7 上获得足够的应用程序开发信息。首先,如何使用 window cmd 制作 procfile?有没有命令语言翻译文档?(linux->windows)
ruby - 我是否需要 Procfile 才能将 Sinatra 应用程序推送到 Heroku?
根据 Heroku 的文档,我了解部署 Sinatra 应用程序需要 Procfile。然而,即使没有它,我也能够将应用程序部署到 Heroku,没有任何问题。只是想了解在什么情况下是绝对需要的。
django - 一个 Heroku 应用程序中的两个进程与两个 Heroku 应用程序
我有一个heroku 应用程序,它有两个进程——一个web 和一个worker,都在同一个应用程序中。我计划整个月都在 ps:scale 1x 中运行这两个。这基本上意味着我每月超过 750 个免费测功小时并且必须支付一些费用。
一个应用,两个进程
应用程序
- 网站:gunicorn myproject.wsgi --log-file -
- 工人:芹菜 -A myproject 工人 -B -E -l info -c 1
我正在考虑将它们拆分为两个独立的应用程序,Web 和拥有自己应用程序的工作人员,并通过 REST API 在它们之间进行通信。由于这是两个应用程序,因此每个应用程序分别如下。这样,两个应用程序将分别低于 750 小时,并且不会收费。
两个应用程序,每个应用程序都有一个进程
应用程序1
- 网站:gunicorn myproject.wsgi --log-file -
应用程序2
- 工人:芹菜 -A myproject 工人 -B -E -l info -c 1
与第一种方法相比,这样做的优点和缺点是什么?谢谢
postgresql - Unicorn Procfile 和开发数据库(Ruby on Rails 4、PostgreSQL、Heroku、Resque)
我正在使用Postgre数据库开发RoR4 应用程序,该数据库使用并托管在Heroku上进行一些后台数据库处理。我的问题是关于在本地运行以进行开发。resque
我的理解是(在这个特定项目中),当我使用 启动 Web 服务器时rails server
,它会连接到开发数据库,而当我使用foreman start
(使用适当的 Procfile)启动它时,它会连接到其他一些本地数据库。
我的问题是我的Resque作业在开发数据库中寻找 ActiveRecords,迫使我使用rails server
. 但是,我需要访问一些存储在.env
文件中的环境变量,据我了解,只能foreman
读取这些环境变量。
我该如何解决这个问题?
更具体地说,如何让我的Resque作业在使用的同一数据库中查找 ActiveRecords foreman start
?或者,我如何foreman start
使用开发数据库?
我对后者的猜测是编辑 Procfile,但我没有找到一个简单的解决方案。
Procfile.dev:
web: bundle exec unicorn -c ./config/unicorn.rb -E $RAILS_DEV
注意:$RAILS_DEV=开发
任何帮助,将不胜感激。谢谢。
ruby-on-rails - 当工头(Procfile)停止运行时,如何使mysqld停止运行
我有一个用于 Rails 应用程序的简单 Procfile:
所有进程都正确启动,这很棒。但是,当我用 CTRL-C 停止 Foreman 时,mysqld 并没有停止。它一直在后台运行。
当工头停止时,如何使 mysqld 停止?
有没有另一种通过命令行启动mysql的方法,我不知道?
python - Heroku 在 procfile 中没有定义这样的进程类型 web
当我跑步heroku ps:scale web=1
时,我遇到了错误。
我的 Procfile 包含以下代码。
我也这样做heroku run bash
了,Procfile 在那里,文件名也正确。
我怎么能解决这个问题?
heroku - HEROKU: ps:scale web=1 no such process type web defined in Procfile
I have seen very similar posts, that however did not help me to find a solution to my problem.
I am following step by step the guide to upload a project on heroku.
However when I type the command:
The result is:
I have created a file "Procfile" being careful at the capitalization. but nothing.
What else can I do to solve this problem??
Thanks in advance.