kjk / edna

Note taking for developers and power users
https://edna.arslexis.io
Other
391 stars 18 forks source link

Feature request: Install instruction for self hosting #31

Closed f8dca closed 4 months ago

f8dca commented 4 months ago

Great App - I am looking forward to using it !!!

It would be very nice to have some sort of installation guide for installing EDNA on a local server in environments that cannot use public servers.

Beside an install guide, it would be beneficial to remove the hard-coded server parameters in your code and make the entire solution fully parametric - see 12-factor

Probably a simple docker container would make things easier for a lot of people.

Cheers

G.

kjk commented 4 months ago

You must have bun installed. Then:

Edna is a single executable that you can run anywhere: your windows, your mac, your linux server.

As far as making it easy for others: I really don't know what other people's needs and constraints are. I'll accept PRs to make build easy for others but I'm not going to guess what it means for people.

f8dca commented 4 months ago

Thank you for the instructions. It looks simple, and I can certainly try.

I'm just wondering about what is the purpose of the server/deploy.go file ? It does contain some hard-coded parameters that will be unique for each install.

Thanks

G.

f8dca commented 4 months ago

build fails with:

panic: open ..\secrets\edna.env: The system cannot find the path specified.
kjk commented 4 months ago

I've made some fixes and updated README.md with build / run instructions. Let me know if they don't work for you.

As to deploy.go it's just a deploy system I use for all my apps. It doesn't do anything fancy (compile the binary, copy binary to the server, configure the server, launch the app) but it's specific to my config so just ignore it.

Use the build instructions in readme.md to get a binary but if you want to deploy it to a server, it's up to you to copy it to the server and configure things.

It's probably trivial to deploy this to render.com