Recommendations on development environment #3053
Replies: 1 comment
-
Given a docker image is already provided, and managing ruby versions and tooling can be a pain, you could start your own docker-compose.yml and mount the code folder into /opt/postal/app I think. If you reference https://github.com/postalserver/postal/blob/main/doc/config/environment-variables.md (and maybe https://github.com/postalserver/postal/blob/main/lib/postal/config_schema.rb) then you can configure your dockerised Postal using environment variables within docker-compose.yml. You will have to provide a MySQL database with root access as well but that is only as annoying as an extra section in docker-compose.yml. You could start from the install template but you wouldn't need things like host mode networking or the restart unless stopped part I recently created a mailpit-like solution with this but as it doesn't have persistent storage for the database or the signing key, it could be annoying to develop with. It also isn't quick to start as it downloads maria each time, I probably should make a combined docker image 😅 I can send queued emails if I need to with
|
Beta Was this translation helpful? Give feedback.
-
I have never written in rails, but I have in a number of other languages. I have an idea about how to tackle https://github.com/orgs/postalserver/discussions/1442, but I need a little guidance on how to setup a dev environment. I was planning on using a linux box, but I have a fair amount of flexibility on what I set up to use. Thanks in advance for the guidance!
Beta Was this translation helpful? Give feedback.
All reactions