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

后端 未结 3 2036
旧时难觅i
旧时难觅i 2021-02-19 06:50

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 Her

3条回答
  •  北荒
    北荒 (楼主)
    2021-02-19 06:54

    Use a .foreman file with:

    port: 3000
    

    or a .env file with:

    PORT=3000
    

    Either one should work, then you can just use foreman start

提交回复
热议问题