foreman

Restart single process with Foreman

夙愿已清 提交于 2019-12-22 08:21:44
问题 I've been using foreman for a while now to scale my various ruby processes in a centralized manner, and it is working perfectly for me . Anyways I would like to have some feature to restart a process or even to give it more control like to kill a process and start it again, in the current implementation when I kill one process the whole process in the main foreman stop . any workaround or solution here ? Thanks in advance 回答1: While foreman start is very convenient for development, I would

Foreman/Puma isn't using the specified port in dev env

怎甘沉沦 提交于 2019-12-21 07:18:07
问题 I set the port as 3000 in my application.yml (figaro managing env variables) rails s uses port 3000 but when I run foreman start (as recommended by Heroku) I get the following output 14:53:23 web.1 | started with pid 24425 14:53:23 web.1 | [24425] Puma starting in cluster mode... 14:53:23 web.1 | [24425] * Version 2.11.1 (ruby 2.2.0-p0), codename: Intrepid Squirrel 14:53:23 web.1 | [24425] * Min threads: 5, max threads: 5 14:53:23 web.1 | [24425] * Environment: development 14:53:23 web.1 |

Foreman running guard with color ouput

浪子不回头ぞ 提交于 2019-12-20 10:25:29
问题 I can run guard from within my foreman procfile - but the output is not as colorful as I'd like. The only color I see in my output is from Foreman... I want to have a guardfile that manages rspec, cucumber and jasmine - AND have that nice color output when those tests run. It would seem as if foreman ignores guard file settings. Any idea how to change that? 回答1: Add the --tty option to your rspec guard cli: guard "rspec", :version => 2, :cli => "--tty ...other options..." 回答2: For version 4.5

Node.js Expres.js Heroku Toolbelt >Foreman Start - Error: write EINVAL

元气小坏坏 提交于 2019-12-19 03:13:17
问题 This is the error I encountered with package.json when running foreman start with Heroku Toolbelt for Node.js "dependencies": { "express": "~4.4.0", "jade": "~1.3.1" } 回答1: I had the same issues as Jek. I was using express 4.4.4. I downgraded express 3.2.6 and it worked, but I shouldn't be forced to use an older version of express just because foreman doesn't support it. I tried node-foreman. And it worked for me. I followed the instructions that included these steps: npm install -g foreman

Can I tell foreman to reload the web app every time a request is made so I can develop decently?

时光毁灭记忆、已成空白 提交于 2019-12-18 10:53:01
问题 A web app I am writing in JavaScript using node.js. I use Foreman, but I don't want to manually restart the server every time I change my code. Can I tell Foreman to reload the entire web app before handling an HTTP request (i.e. restart the node process)? 回答1: Here's an adjusted version of Pendlepants solution. Foreman looks for an .env file to read environment variables. Rather than adding a wrapper, you can just have Foreman switch what command it uses to start things up: In .env: WEB=node

How can I setup a local SSL certificate and a Rails application?

江枫思渺然 提交于 2019-12-18 06:54:52
问题 This might be a two-in-one question. I have a Rails application for home/hobby usage, hosted on a Raspberry Pi and I was wondering if it's possible to create a local SSL certificate for it and setup Rails to use it? If yes, how can I setup my Rails/Puma/Foreman/Ubuntu application? For now, I am running the application with Foreman, by using a Procfile: web: bundle exec puma -t 8:8 -p 3000 worker: bundle exec sidekiq clock: bundle exec clockwork config/clock.rb 回答1: Yes you can. Here is a gist

How can I setup a local SSL certificate and a Rails application?

江枫思渺然 提交于 2019-12-18 06:53:24
问题 This might be a two-in-one question. I have a Rails application for home/hobby usage, hosted on a Raspberry Pi and I was wondering if it's possible to create a local SSL certificate for it and setup Rails to use it? If yes, how can I setup my Rails/Puma/Foreman/Ubuntu application? For now, I am running the application with Foreman, by using a Procfile: web: bundle exec puma -t 8:8 -p 3000 worker: bundle exec sidekiq clock: bundle exec clockwork config/clock.rb 回答1: Yes you can. Here is a gist

How to debug a rails (3.2) app started by foreman?

可紊 提交于 2019-12-17 23:08:26
问题 I am trying to use foreman to start my rails app. Unfortunately I have difficulties connecting my IDE for debugging. I read here about using Debugger.wait_connection = true Debugger.start_remote to start a remote debugging session, but that does not really work out. Question: Is there a way to debug a rails (3.2) app started by foreman? If so, what is the approach? 回答1: If you use several workers with full rails environment you could use the following initializer: # Enabled debugger with

foreman says “unexpected EOF” in one of the SAME node app in 2 different places

时光毁灭记忆、已成空白 提交于 2019-12-13 09:35:45
问题 i have a sample node.js app in directoryA . Then i did foreman start in that directory and it worked fine. afterwords i copied that app into a new location and tried doing foreman start from there, it didn't work... here is what i did: $ ########## foreman works fine in directoryA ########## $ pwd you/cant/see/me/directoryA $ foreman start 22:28:30 web.1 | started with pid 80332 22:28:30 web.1 | Listening on 5000 ^C $ ########## copy the same node app from directoryA to directoryB ##########

OpenSSL::SSL::SSLError - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed:

只谈情不闲聊 提交于 2019-12-13 04:07:02
问题 I deployed a Facebook app using Heroku and got it partially working locally. I can see my app but I as soon as I click on connect with Facebook I get an Internal Server Error Message. This is what Foreman is throwing: OpenSSL::SSL::SSLError - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed: Everything works on Production but I need to get local working to start integrating Mongo and FB. I followed all the instructions on: https://devcenter