kylef / heroku-buildpack-swift

Heroku build pack for Swift
BSD 3-Clause "New" or "Revised" License
508 stars 0 forks source link

Error: Unable to set buildpack https://github.com/vapor/heroku-buildpack #21

Closed jjessel closed 8 years ago

jjessel commented 8 years ago

When I try to deploy to Heroku, I get the following error

Error: Unable to set buildpack https://github.com/vapor/heroku-buildpack: ▸ Couldn't find that app.

I have tried setting the buildpack via the buildpacks:set command and same error.

kylef commented 8 years ago

I think this error indicates that you didn't run the buildpacks:set command from a Heroku app. You can add the -a <appname> option to specify an application.

jjessel commented 8 years ago

I tried that too and got the same error. I was initially able to use vapor heroku init and it built the app. I had to delete the app from Heroku ran the command again. That's when I see the error.

kylef commented 8 years ago

I had to delete the app from Heroku ran the command again

So you are trying to set the build pack for a deleted Heroku app?

jjessel commented 8 years ago

I deleted the app from Heroku and ran vapor heroku init again. That's when I get the error. If, after the app is deleted, I try to set the buildpack, I get the same error. If I use the create command and push the changes to Heroku, it builds fine.

kylef commented 8 years ago

If, after the app is deleted, I try to set the buildpack, I get the same error

You can't set a build pack for a deleted app, because the app doesn't exist. Not sure what you expect this to do.

jjessel commented 8 years ago

I thought after deleting my app, that vapor heroku init would create a new app for me. Instead I kept getting the error.

kylef commented 8 years ago

I don't know what vapor heroku init is, this is the issue tracker for a Heroku Swift build pack and not vapour.

You can create a Heroku app with the Heroku Swift buildpack using the following:

$ heroku create --buildpack https://github.com/kylef/heroku-buildpack-swift.git

If you have an existing Heroku app, you can set the build pack using:

$ heroku buildpacks:set https://github.com/kylef/heroku-buildpack-swift.git --app <my app name>
jjessel commented 8 years ago

Ok. Got it. Thanks.

ghost commented 7 years ago

@jjessel how did you end up solving this issue? I'm experiencing the same.