jonschoning / espial

Espial is an open-source, web-based bookmarking server.
GNU Affero General Public License v3.0
793 stars 27 forks source link

Documentation? #26

Closed grtcdr closed 3 years ago

grtcdr commented 3 years ago

Are there plans to document some of the common operations?

For example: for someone like me, who's never used Haskell before, how do I close the network socket that was opened when I ran espial?

Is there a help section that I'm missing?

grtcdr commented 3 years ago

EDIT: sudo netstat -anp | grep 3000 gives me the output I need. But I still think there should be a little bit more documentation for confused people like myself.

jonschoning commented 3 years ago

shouldn't the network socket automatically close when you stop the application?

theres also espial-docker if you just want to run a conatiner.

grtcdr commented 3 years ago

shouldn't the network socket automatically close when you stop the application?

Unfortunately, it did not...

jonschoning commented 3 years ago

What command are you using to run it?

grtcdr commented 3 years ago

stack exec espial -- +RTS -T as the README states to run a production server.

jonschoning commented 3 years ago

i would be surprised if the socket was owned by espial and still listening after the process was shutdown. you can run while true; do sudo netstat -plat | grep 3000; echo ''; sleep 1; done to see the owning process and the socket state

grtcdr commented 3 years ago

I might've done something wrong along the way then...

grtcdr commented 3 years ago

Feel free to close this :)