The Golang application I hosted on the EC2 instance works fine and loads the env file when I build it and run it manually, but when running it as service it fails to get the environment file even though I have specified the Environment File path in the service conf too
Systemd Service Configuration (project.service
Project Directory Structure
Error Log Generated During Service Execution
FilePath used for loading .env
How can I troubleshoot why the .env file is not being loaded when the application is run as a systemd service?
Are there any configurations I should check to ensure the .env file is accessible to the systemd service?