Is it possible to deploy Joplin Server to heroku?
Someone has completed this operation, but unfortunately, I don't know how to implement it
This is great. Now that I know that I know it works, I will find a way to implement it. Thank you very much!
In general, I have successfully set and deployed,
but I don't know how to set postgresql to the Joplin server.
Using the database provided by the Joplin server will report an error (error: timeout trying to connect to database.
Last error was: no pg_hba.conf entry for host "XXX", user "XXX", database "XXX", no encryption),
I don't know node.js and typescript
You can check the GitHub repository of my fork（ GitHub - zuikec/joplin: Joplin - an open source note taking and to-do application with synchronisation capabilities for Windows, macOS, Linux, Android and iOS. ).
- Need: heroku stack: set container - a XXXX, and add relevant. Env
- The dockerfile.server is renamed and modified to the format supported by heroku
- A file heroku.yml is added to indicate the location of the dockerfile file
- Modified (packages / server / src/ app.ts)
Thank you very much! Can you maybe give us a step by step tutorial?
Need: heroku cli
heroku stack: set container - a test-joplin,Change the default environment to docker
Dockerfile.serverfile is renamed and modified to the format supported by heroku, and only the commands for creating users and declaring ports are modified (heroku only supports random ports, and all do not use the default 22300)
Create a file named
heroku.yml. The command indicates the location of the dockerfile file
Modify files in the repository(packages / server / src/ app.ts)
Because heroku only supports random ports, it needs to get from the environment variable
You can directly fork the GitHub repository, directly add the
I deployed on Heroku using the button provided by you, but when I put the configuration to Joplin and I check synchronization configuration, I get error response
Error. Please check that URL, username, password, etc. are correct and that the sync target is accessible. The reported error was:
Error 502 Bad Gateway:Heroku | Welcome to your new app! (Code 502)