This might be a basic question for most of you guys, so I apologize for asking it.
Short version, I was able to build an app with Phoenix using Cline (I can’t code anything myself) and have now been able to deploy it in my homelab as it is ready for use. The issue that I’m having is that the server will not automatically start when the VM is rebooted. Furthermore, every time I reboot the VM, I have to go through the process of setting (exporting?) the key and the salt before I can start the server.
How can I automate this so that the server is started automatically after booting and/or after crashing (it hasn’t done that yet)? I assume I have to write some sort of script to get this done via systemd, but curious to hear your thoughts of how this is normally done.
@cblavier I think my reservation came from me not actually being a developer and just using AI to build everything. Glad to be learning though. This project taught me a lot about logic, how things work, etc. It has been very exciting to learn all of this.