vapor 3.1.10 swift 5.0 Setting procfile... Error: GeneralError(message: "Unable to locate vapor dependency")

Created on 12 Apr 2019  Â·  3Comments  Â·  Source: vapor/vapor


Steps to reproduce



Expected behavior

Actual behavior

Environment


  • Vapor Framework version:
  • Vapor Toolbox version:
  • OS version:

Most helpful comment

Don't use the vapor heroku commands to set up your Heroku application, they simply don't work anymore – and the Toolbox hasn't seen a maintenance release for a long while...


Instead, do the steps manually. Judging from the output, the app was created and the buildpack was set, so all that's left is to create a Procfile then commit and push to Heroku.

Create a file called Procfile at the project folder with the following contents:

web: Run --env production --hostname 0.0.0.0 --port $PORT

Then push it:

git add .
git commit -m "Add Procfile"
git push heroku master

All 3 comments

xiongchuandeMacBook-Pro:Hello xiongchuan$ vapor heroku init
Would you like to provide a custom Heroku app name?
y/n> y
Custom app name:

swiftbear
Would you like to deploy to a region other than the US?
y/n> n
https://swiftbear.herokuapp.com/ | https://git.heroku.com/swiftbear.git

Would you like to provide a custom Heroku buildpack?
y/n> n
Setting buildpack...
Are you using a custom Executable name?
y/n> n
Setting procfile...
Error: GeneralError(message: "Unable to locate vapor dependency")

Don't use the vapor heroku commands to set up your Heroku application, they simply don't work anymore – and the Toolbox hasn't seen a maintenance release for a long while...


Instead, do the steps manually. Judging from the output, the app was created and the buildpack was set, so all that's left is to create a Procfile then commit and push to Heroku.

Create a file called Procfile at the project folder with the following contents:

web: Run --env production --hostname 0.0.0.0 --port $PORT

Then push it:

git add .
git commit -m "Add Procfile"
git push heroku master

Thank you,it works.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nsleader picture nsleader  Â·  4Comments

betzerra picture betzerra  Â·  3Comments

wildfiremedia picture wildfiremedia  Â·  4Comments

nhatlee picture nhatlee  Â·  3Comments

loganwright picture loganwright  Â·  3Comments