In my case, I deployed Mercure on Dokku using Dockerfile
- Create a new application on Dokku
dokku apps:create <app-name>
- Config your environment variables
dokku config:set <app-name> MERCURE_PUBLISHER_JWT_KEY=your_key MERCURE_SUBSCRIBER_JWT_KEY=your_key ALLOW_ANONYMOUS=1 CORS_ALLOWED_ORIGINS=* PUBLISH_ALLOWED_ORIGINS=your_origins
- Once the environment variables are set. Deploy and let Dokku do his magic, go to your directory and Deploy
git push dokku master
.
PS: don't forget to init your git repo and add Dokku as a remote to name the app, on your local machine.