Closed DhiaDjobbi closed 3 years ago
Hello guys , I am really struggling to deploy Mercure Hub on Heroku! I made some research and I found Dunglas Answer on StackOverflow But its not clear :( ! Do I create an empty Go Project and then Copy and Paste the Binary inside it and push it to Heroku ? and what Procfile Should I use on this case? The go lang Default Procfile
web: bin/go-getting-started
? or Mercure Procfile ?web: ADDR=":${PORT}" mercure
? In case Mercure Procfile , Which Port should I use ?Can Anyone please Provide clear steps on deploying Mercure on Heroku! Thank you
Hey man, i think this will help you: https://github.com/ging-dev/mercure-heroku You need use this buildpack to run it: https://github.com/ph3nx/heroku-binary-buildpack Demo: https://mercure-gingdev.herokuapp.com
Thank you @ging-dev for your answer!
I created a heroku project and used that binary buildpack using:
heroku create mercure-dhia --buildpack https://github.com/ph3nx/heroku-binary-buildpack.git
I added Mercure files (I am using version 0.9.0) and I git add.
git commit
and then git push heroku master
when I open https://mercure-dhia.herokuapp.com/
I get a Permission Denied Error on my logs.
This are my logs :
I solved this error by Changing my Procfile content from :
web: ./mercure -k "test" -c '*' -p '*' -a :$PORT -D -X
to :
web: chmod a+x ./mercure ; ./mercure -k "test" -c '*' -p '*' -a :$PORT -D -X
(I added **chmod a+x ./mercure ;**
)
Thank you @ging-dev for your answer! I created a heroku project and used that binary buildpack using:
heroku create mercure-dhia --buildpack https://github.com/ph3nx/heroku-binary-buildpack.git
I added Mercure files (I am using version 0.9.0) and I
git add.
git commit
and thengit push heroku master
when I open https://mercure-dhia.herokuapp.com/ I get a Permission Denied Error on my logs.This are my logs :
I solved this error by Changing my Procfile content from :
web: ./mercure -k "test" -c '*' -p '*' -a :$PORT -D -X
to :web: chmod a+x ./mercure ; ./mercure -k "test" -c '*' -p '*' -a :$PORT -D -X
(I added**chmod a+x ./mercure ;**
)
Ya, exactly I gave the file permission before adding it to git, I don't have that problem 😳
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@ging-dev @DhiaDjobbi Hi guys
Which version of mercure bin do you use? I'm using the latest one and there's no way to specify options. I can only do "mercure run -config" specifying a caddy file.
So I assume that Mercure must be run with Caddy on Heroku now?
Thanks for your help
@ging-dev @DhiaDjobbi Hi guys
Which version of mercure bin do you use? I'm using the latest one and there's no way to specify options. I can only do "mercure run -config" specifying a caddy file.
So I assume that Mercure must be run with Caddy on Heroku now?
Thanks for your help
Hi, you can choose legacy linux x86_64
version to run on Heroku, they don't need Candy server
@ging-dev @DhiaDjobbi Hi guys Which version of mercure bin do you use? I'm using the latest one and there's no way to specify options. I can only do "mercure run -config" specifying a caddy file. So I assume that Mercure must be run with Caddy on Heroku now? Thanks for your help
Hi, you can choose
legacy linux x86_64
version to run on Heroku, they don't need Candy server
Thank you!
Hello guys , I am really struggling to deploy Mercure Hub on Heroku! I made some research and I found Dunglas Answer on StackOverflow But its not clear :( ! Do I create an empty Go Project and then Copy and Paste the Binary inside it and push it to Heroku ? and what Procfile Should I use on this case? The go lang Default Procfile
web: bin/go-getting-started
? or Mercure Procfile ?web: ADDR=":${PORT}" mercure
? In case Mercure Procfile , Which Port should I use ?Can Anyone please Provide clear steps on deploying Mercure on Heroku! Thank you