diff --git a/talawa-api-docs/talawa-api.service b/talawa-api-docs/talawa-api.service new file mode 100644 index 0000000000..0acc9f1d16 --- /dev/null +++ b/talawa-api-docs/talawa-api.service @@ -0,0 +1,16 @@ +[Unit] +Description=Talawa API Service +After=network.target + +[Service] +User=talawa +Group=talawa +WorkingDirectory=/opt/talawa-api +ExecStart=/usr/bin/python3 /opt/talawa-api/main.py +Restart=always +RestartSec=5 +Environment="PATH=/usr/bin:/usr/local/bin" +Environment="APP_ENV=production" + + [Install] +WantedBy=multi-user.target