Skip to content

Commit c50485a

Browse files
committed
Initial assets for deploying webapp to server
1 parent f56a95e commit c50485a

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

assets/setup-web.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env sh
2+
3+
cp /tmp/assets/webapp /usr/local/bin/
4+
chmod +x /usr/local/bin/*
5+
cp /tmp/assets/webapp.service /lib/systemd/system/webapp.service
6+
service webapp start

assets/webapp

9.46 MB
Binary file not shown.

assets/webapp.service

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[Unit]
2+
Description=Demo web app
3+
4+
[Service]
5+
ExecStart=/usr/local/bin/webapp >> /var/log/webapp.log
6+
IgnoreSIGPIPE=false
7+
KillMode=process
8+

0 commit comments

Comments
 (0)