Heroku scale web = 1 returns "no such type as web"

I am trying to set up an intermediate server for a client that already has an application in production. Production expands with 8 web speakers.

I created an intermediate application and pressed the code. When I run:

heroku scale web=1 --app=myapp-staging 

I get:

 Scaling web processes... failed ! No such type as web 

The profile in both cases is exactly the same. These are just two lines, and it looks like this:

 web: bundle exec rails server thin -p $PORT -e $RACK_ENV worker: bundle exec rake jobs:work 

In the application configuration, I set $ PORT to 80 and $ RACK_ENV in 'production'. Rails - 3.2.8.

Thanks!

+4
source share
2 answers

It should be a capital Procfile . If you run heroku run bash and check with ls , is the file really there?

+2
source

Just create a simple text file: Procfile with the following contents: web: target/start -Dhttp.port=${PORT} ${JAVA_OPTS} for the playframework application or web: sh target/bin/webapp for the sample Java web application.

0
source

All Articles