Rails deployment from foreman to supervisord

Daniel Schmidt

I would like to deploy my rails app, which locally runs with foreman to a server, where supervisord handles the restarts.

Unfortunatley the app throws this error and I have no idea where $PORT comes from, nor from where this part gets started. Locally everything runs nice.

My app uses redis (which is the second part in the procfile) and puma as a webserver

.../.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/uri/generic.rb:213:in 'initialize': the scheme tcp does not accept registry part: 0.0.0.0:$PORT

dbanck

Check your supervisor config.

bundle exec puma -p $PORT

won't use the environment variable PORT. It should work setting the port manually. For example:

bundle exec puma -p 3000

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Remove Host from Foreman

From Dev

What is the difference between foreman start and foreman run rails server?

From Dev

When using Foreman with Rails 4 and a debug listener locally there is no response from the server

From Dev

Running foreman from a rake task

From Dev

foreman - clone from vmware template

From Dev

Disable Asset logging in Rails 4 + unicorn + foreman

From Dev

Foreman conditional process with .env file in Rails

From Dev

Application served by uWSGI with Supervisord from Docker

From Dev

Pass environment variable from docker to supervisord

From Dev

Supervisord does not show stdout from processes

From Dev

Application served by uWSGI with Supervisord from Docker

From Dev

Capistrano and Rails deployment, unable to access bitbucket repo from ubuntu server

From Dev

Rails 4.2 : sidekiq cannot connect to Redis (Errno::ECONNREFUSED) started with foreman

From Dev

How do I prefix rails and rake commands with foreman automatically?

From Dev

Rails 4.2 : sidekiq cannot connect to Redis (Errno::ECONNREFUSED) started with foreman

From Dev

Supervisord: how to source rvm, and bundle exec to launch a rails script?

From Dev

Deployment Rails app for Docker

From Dev

Resque Capistrano Deployment in Rails

From Dev

Testing and Deployment workflow (Rails)

From Dev

Foreman, from the Heroku Toolbelt, exits with Error: write EINVAL every time

From Dev

Foreman, from the Heroku Toolbelt, exits with Error: write EINVAL every time

From Dev

Running supervisord from the host, celery from a virtualenv (Django app)

From Dev

Running supervisord from the host, celery from a virtualenv (Django app)

From Dev

nginx not returning errors from fcgiwrap when using supervisord

From Dev

Rails 5 + Foreman + Pow gives me "Couldn't proxy request to localhost:5000"

From Dev

Heroku - How to fix "cannot load such file -- foreman/cli (LoadError)" ? - [Java, Windows, Ruby-on-rails]

From Dev

How can I start a Procfile process, after the rails server has completely started up with foreman?

From Dev

Docker with foreman

From Dev

rails 4 + mina deployment failure

Related Related

  1. 1

    Remove Host from Foreman

  2. 2

    What is the difference between foreman start and foreman run rails server?

  3. 3

    When using Foreman with Rails 4 and a debug listener locally there is no response from the server

  4. 4

    Running foreman from a rake task

  5. 5

    foreman - clone from vmware template

  6. 6

    Disable Asset logging in Rails 4 + unicorn + foreman

  7. 7

    Foreman conditional process with .env file in Rails

  8. 8

    Application served by uWSGI with Supervisord from Docker

  9. 9

    Pass environment variable from docker to supervisord

  10. 10

    Supervisord does not show stdout from processes

  11. 11

    Application served by uWSGI with Supervisord from Docker

  12. 12

    Capistrano and Rails deployment, unable to access bitbucket repo from ubuntu server

  13. 13

    Rails 4.2 : sidekiq cannot connect to Redis (Errno::ECONNREFUSED) started with foreman

  14. 14

    How do I prefix rails and rake commands with foreman automatically?

  15. 15

    Rails 4.2 : sidekiq cannot connect to Redis (Errno::ECONNREFUSED) started with foreman

  16. 16

    Supervisord: how to source rvm, and bundle exec to launch a rails script?

  17. 17

    Deployment Rails app for Docker

  18. 18

    Resque Capistrano Deployment in Rails

  19. 19

    Testing and Deployment workflow (Rails)

  20. 20

    Foreman, from the Heroku Toolbelt, exits with Error: write EINVAL every time

  21. 21

    Foreman, from the Heroku Toolbelt, exits with Error: write EINVAL every time

  22. 22

    Running supervisord from the host, celery from a virtualenv (Django app)

  23. 23

    Running supervisord from the host, celery from a virtualenv (Django app)

  24. 24

    nginx not returning errors from fcgiwrap when using supervisord

  25. 25

    Rails 5 + Foreman + Pow gives me "Couldn't proxy request to localhost:5000"

  26. 26

    Heroku - How to fix "cannot load such file -- foreman/cli (LoadError)" ? - [Java, Windows, Ruby-on-rails]

  27. 27

    How can I start a Procfile process, after the rails server has completely started up with foreman?

  28. 28

    Docker with foreman

  29. 29

    rails 4 + mina deployment failure

HotTag

Archive