Submitted by bootes in Postmill

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"

  1. 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!

3

Comments

You must log in or register to comment.

WindTalk wrote (edited )

can't find a *.env file anywhere.

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?

2

bootes OP wrote

duh..shit. I didn't even thing of hidden files. Stupid windows brain.

psql (PostgreSQL) 9.6.6 , But I can upgrade to 10.

3

[deleted] wrote (edited )

1

WindTalk wrote

Thanks for the thoughts.

So, I noticed when reading your reply to me that context seems absent. The inbox page does not show the name of the forum and the title of the post you replied to. Was it a conscious choice to go with such minimalism, or just haven't gotten to that level of fleshing out?

1