User Tools

Site Tools


evenements:log:20200606

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
evenements:log:20200606 [2020-10-17 17:27] – +internal link to presence button project page Lomanicevenements:log:20200606 [2023-02-02 22:06] (current) – external edit 127.0.0.1
Line 25: Line 25:
   * ''<nowiki>git clone https://git.interhacker.space/Lomanic/presence-button-web</nowiki>'', add .env file and append ''<nowiki>echo "PORT=3000" >> .env</nowiki>'', otherwise the listening port would be dynamic (useless for reverse proxy)   * ''<nowiki>git clone https://git.interhacker.space/Lomanic/presence-button-web</nowiki>'', add .env file and append ''<nowiki>echo "PORT=3000" >> .env</nowiki>'', otherwise the listening port would be dynamic (useless for reverse proxy)
   * following https://doc.ubuntu-fr.org/creer_un_service_avec_systemd#exemple_de_service_de_type_simple <code>   * following https://doc.ubuntu-fr.org/creer_un_service_avec_systemd#exemple_de_service_de_type_simple <code>
-cat << EOF /etc/systemd/system/presence-button-web.service +cat << EOF | sudo tee /etc/systemd/system/presence-button-web.service >/dev/null 
-[Unit]  +[Unit]
 Description=Presence button web Description=Presence button web
 After=network-online.target After=network-online.target
Line 43: Line 43:
 WantedBy=multi-user.target WantedBy=multi-user.target
 EOF EOF
-systemctl enable presence-button-web.service+sudo systemctl enable presence-button-web.service
 </code> </code>
   * add this to ''/etc/lighttpd/lighttpd.conf''<code>   * add this to ''/etc/lighttpd/lighttpd.conf''<code>
evenements/log/20200606.1602955653.txt.gz · Last modified: 2023-02-02 22:06 (external edit)