Browse Source

switching to Starman for the proxy server

Issue #5
master
Blaine Motsinger 1 year ago
parent
commit
709ab5914d
2 changed files with 7 additions and 5 deletions
  1. 2
    2
      app/http.conf
  2. 5
    3
      app/rendmap.service

+ 2
- 2
app/http.conf View File

@@ -3,5 +3,5 @@
# Include "/etc/apache2/conf.d/userdata/ssl/2_4/rendmap/map.renderorange.com/*.conf"

# then, within the include dir above, in dancer.conf
# ProxyPass / http://localhost:5000/
# ProxyPassReverse / http://localhost:5000/
# ProxyPass / unix:/var/run/rendmap/rendmap.sock
# ProxyPassReverse / unix:/var/run/rendmap/rendmap.sock

+ 5
- 3
app/rendmap.service View File

@@ -1,12 +1,15 @@
[Service]
ExecStart=/home/rendmap/perl5/bin/plackup /home/rendmap/git/rendmap/app/app.psgi
RuntimeDirectory=rendmap

ExecStart=/home/rendmap/perl5/bin/starman --daemonize -l /var/run/rendmap/rendmap.sock --pid /var/run/rendmap/rendmap.pid --error-log /var/log/rendmap/starman.log /home/rendmap/git/rendmap/app/app.psgi

Restart=always

StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=rendmap

Type=simple
Type=forking
User=rendmap
Group=rendmap

@@ -14,4 +17,3 @@ Environment=DANCER_CONFDIR=/home/rendmap/git/rendmap/app/ DANCER_ENVIRONMENT=pro

[Install]
WantedBy=multi-user.target


Loading…
Cancel
Save