So I am trying to deploy my Elixir phoenix web application to Heroku. I am following this guide: https://hexdocs.pm/phoenix/heroku.html
But when I get to the point where I need to add a buildpack:
heroku buildpacks:add https://github.com/gjaldon/heroku-buildpack-phoenix-static.git
I get this error:
Couldn't find that app.
Running heroku buildpacks:add --help precises that the app parametes is required, so let's check the list of app names:
user#machine:~/project> heroku apps
=== john#doe.com Apps
some-app-name (eu)
Then re-run the command as such:
user#machine:~/project> heroku buildpacks:add <buildpack> --app some-app-name
Related
I've got a problem when I upload my project on Heroku. I've trying changing value of socket.io and MongoUrl, but I get this error:
Error: Missing required flag:
› -a, --app APP app to run command against
This has nothing to do with any of your files. It's an argument that you must provide to the Heroku CLI itself, e.g.
heroku config:set SOME_VARIABLE=some_value -a myapp
where myapp is the name of your Heroku app.
The -a / --app argument is required when heroku can't figure out what app to connect to, either bcause there is no Heroku remote configured or because there is more than one Heroku remote configured.
See also How to avoid the --app option with heroku CLI?
I'm triggering Heroku deployment from Bitbucket Pipeline using this shell script:
https://bitbucket.org/spittet/heroku-deploy/src/master/heroku-deploy.sh
This works fine but now I'd like for this to deploy to two Heroku apps with the same code, just different Procfiles
There's no official way, but there is a build pack that supports multiple Procfiles:
https://github.com/heroku/heroku-buildpack-multi-procfile
For each app set the PROCFILE variable
heroku config:set PROCFILE=relative/path/to/Procfile -a <app>
And then add the buildpack
heroku buildpacks:add -a <app> https://github.com/heroku/heroku-buildpack-multi-procfile
Using the heroku docker:release command, how can I specify which app to release to? I can't see from any documentation whether there's any switch for this purpose.
Heroku commands take their context from the directory you are in when you run them.
Go into the directory from where you did heroku create then run heroku docker:release.
If you haven't used heroku create, then you can specify the app name with the --app <APP NAME> command line parameter. for instance, if you were to release to the app named f00 you would type:
heroku docker:release --app f00
I have my github source here https://github.com/pramadae/Monkey and deployed it on heroku. And https://immense-harbor-7247.herokuapp.com/ is my heroku app link. Unfortunately I could not run my application. Please help me.
You should change your Procfile to:
web: gunicorn run:app
I am trying to deploy a playframework application to Heroku. After deploying, I trying to access the URL Heroku gave me, it only show a welcome page as below :
Heroku | Welcome to your new app!
Refer to the documentation if you need help deploying.
Is any wrong ??
Your app is not recognized by Heroku (Heroku does not know how to start your app).
You need to create a file called Procfile in the top directory of your Play! application:
web: play run --http.port=$PORT $PLAY_OPTS
You will more details in this documentation.