我有一个成功运行多个进程的Procfile设置:#/Procfileredis:bundleexecredis-serversidekiq:bundleexecsidekiq-v-C./config.ymlforward:forward4567mock-api我需要再添加一个进程-一个位于我机器上不同目录中的Sinatra应用程序。如果我cd到该目录,我可以从终端启动它:$rackup-p4567我可以使用终端从不同的目录启动它:$sh-c'cd/Path/to/project/&&execrackup-p4567'但是我应该如何使用工头来做到这一点。我尝试添加以下内容,但它无声地失败
我目前正在运行Foreman在暂存(Ubuntu)上,一旦我开始工作,就会切换到使用upstart。我的Procfile.staging看起来像这样:nginx:sudoservicenginxstartunicorn:bundleexecunicorn-c./config/unicorn.rbredis:bundleexecredis-serversidekiq:bundleexecsidekiq-v-C./config/sidekiq.yml我可以使用以下方法成功启动nginx:$sudoservicenginxstart然而,当我运行$foremanstart时,当其他三个进程成
我最近从使用Ubuntu系统Ruby切换到使用RVM。当我运行foremanstart时,无论我的Procfile中的命令是什么,我都会收到一个未找到的错误。我当前的Procfile是:web:bundleexecunicorn-p$PORT-c./unicorn.rb所以错误是:/home/timmillwood/.rvm/gems/ruby-1.9.3-p327/gems/foreman-0.60.2/bin/foreman-runner:41:exec:bundle:notfound哪个工头返回/home/timmillwood/.rvm/gems/ruby-1.9.3-p327
尝试运行“foremanstart”来执行我的rails文件时,我收到以下错误。dyld:Symbolnotfound:_rb_ary_new_from_valuesReferencedfrom:/Users/paulbattisson/.rvm/gems/ruby-2.1.1/gems/psych-2.0.5/lib/psych.bundleExpectedin:flatnamespace如果我运行railss那么应用程序可以正常启动,但是我想使用以下Procfile:web:bundleexecrackupconfig.ru-p$PORTresque:envTERM_CHILD=1
我在我的Procfile中定义了三个进程。有时,我只想运行其中两个。有相关命令吗?$foremanstartprocess_1process_2ERROR:"foremanstart"wascalledwitharguments["process_1","process_2"]Usage:"foremanstart[PROCESS]" 最佳答案 您可以使用-cor--concurrencyoption并指定您要启动的进程:$foremanstart-cprocess_1=1,process_2=1
对于启动应用程序,我使用Foreman。工头从Procfile开始流程web:bundleexecrailsserverthin-p$PORTworker:bundleexecrakeenvironmentresque:workQUEUE=send_mailapi:bundleexecrailsserverthin-p$PORT如果我在运行foreman的控制台中按control+C,则foreman结束但运行的进程未被终止。是否有可能在工头被杀死时杀死工头运行的进程。 最佳答案 下面的示例假设使用的端口是4567,然后执行:lso
我有以下Procfile:web:bundleexecunicorn-p$PORT-c./config/unicorn.rbredis:bundleexecredis-server/usr/local/etc/redis.confworker:bundleexecsidekiq运行$foremanstart启动Unicorn、Redis和Sidekiq,但我应该如何停止它们?杀死工头会使这三个人都离开。我可以使用ps看到这个:$psaux|grepredis|grep-vgrepme615600.00.025067841740s000S+9:36am0:01.28redis-serve
我希望工头gem使用我的开发环境文件中提供的PORT值,而不是使用它自己的值。我的文件设置如下所示:启动工头的bash脚本:foremanstart-edevelopment.envdevelopment.env文件内容:端口=3000Procfile内容web:bundleexecrailsserverthin-p$PORT-e$RAILS_ENV$1开发服务器最终在端口5000上启动。我知道我可以用--p3000启动工头以强制它使用该端口。但这违背了env文件的目的。有什么建议吗? 最佳答案 我知道这是一篇旧帖子,但我花了一段时
我有以下Rake任务:namespace:foremandotask:devdo`foremanstart-fProcfile.dev`endenddesc"RunForemanusingProcfile.dev"task:foreman=>'foreman:dev'forman命令在shell中运行良好,但是当我运行rakeforeman时,出现以下错误:/Users/me/.gem/ruby/2.0.0/gems/bundler-1.5.2/lib/bundler/rubygems_integration.rb:240:in`blockinreplace_gem':foremani
我在application.yml中将端口设置为3000(figaro管理环境变量)railss使用端口3000但是当我运行foremanstart(按照Heroku的建议)时,我得到以下输出14:53:23web.1|startedwithpid2442514:53:23web.1|[24425]Pumastartinginclustermode...14:53:23web.1|[24425]*Version2.11.1(ruby2.2.0-p0),codename:IntrepidSquirrel14:53:23web.1|[24425]*Minthreads:5,maxthrea