[Unit]
Description=Puma HTTP Server for weiling-company (production)
After=network.target


[Service]
Type=simple
User=root
Environment=PATH=/usr/local/node-v16.13.0-linux-x64/bin:/usr/local/ruby-3.2.4/bin:$PATH
WorkingDirectory=/www/weiling-company/current
# Support older bundler versions where file descriptors weren't kept
# See https://github.com/rubygems/rubygems/issues/3254
ExecStart=/usr/bin/env bundle exec --keep-file-descriptors puma -C /www/weiling-company/shared/puma.rb
ExecReload=/bin/kill -USR1 $MAINPID
StandardOutput=append:/www/weiling-company/shared/log/puma_access.log
StandardError=append:/www/weiling-company/shared/log/puma_error.log




Restart=always
RestartSec=20

SyslogIdentifier=puma

[Install]
WantedBy=multi-user.target
