I've been working on setting this up, and I ran into an issue with this line of the instructions under "setting up the backend"
- You should now have a .env file in the project root. Edit this to your liking or leave the defaults alone, but you must change DATABASE_URL.
I cant find where this is. I've tried searching for it, but can't find a *.env file anywhere. Also Not sure where the "project root" is.
I testing this on an Ubuntu 17.10 server. My working directory is /home/postmill/Postmill
Thanks for any help!
WindTalk wrote (edited )
That's your problem. It isn't "something .env", it starts with "." in the name. It's a hidden file, Linux hides files that start with a dot. From the shell, do "nano .env" in that working directory (nano is an editor good for remote shell, ssh, remote servers).
(Next step) What version of PG database did you install? the line you put in for DATABASE_URL should reflect that. I suggest version 10 ... https://gist.github.com/alistairewj/8aaea0261fe4015333ddf8bed5fe91f8
P.S. As a convention, hiding a config file for a server software app is a poor idea. OpenSSH server software doesn't hide it's config file (/etc/ssh/sshd_config). Who thinks it is a good idea to name the file ".env" in the first place? The name "env" is also not that great, why not "app_parameters" instead?