2020-05-04 20:29:38 +00:00
|
|
|
[Unit]
|
|
|
|
Requires=network.target
|
|
|
|
PartOf=chatwoot.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=chatwoot
|
|
|
|
WorkingDirectory=/home/chatwoot/chatwoot
|
|
|
|
|
|
|
|
ExecStart=/bin/bash -lc 'bin/rails server -p $PORT -e $RAILS_ENV'
|
|
|
|
|
|
|
|
Restart=always
|
|
|
|
RestartSec=1
|
|
|
|
TimeoutStopSec=30
|
|
|
|
KillMode=mixed
|
|
|
|
StandardInput=null
|
|
|
|
SyslogIdentifier=%p
|
|
|
|
|
2022-05-27 12:03:24 +00:00
|
|
|
Environment="PATH=/home/chatwoot/.rvm/gems/ruby-3.0.4/bin:/home/chatwoot/.rvm/gems/ruby-3.0.4@global/bin:/home/chatwoot/.rvm/rubies/ruby-3.0.4/bin:/home/chatwoot/.rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/home/chatwoot/.rvm/bin:/home/chatwoot/.rvm/bin"
|
2020-05-04 20:29:38 +00:00
|
|
|
Environment="PORT=3000"
|
|
|
|
Environment="RAILS_ENV=production"
|
|
|
|
Environment="NODE_ENV=production"
|
|
|
|
Environment="RAILS_LOG_TO_STDOUT=true"
|
2022-05-27 12:03:24 +00:00
|
|
|
Environment="GEM_HOME=/home/chatwoot/.rvm/gems/ruby-3.0.4"
|
|
|
|
Environment="GEM_PATH=/home/chatwoot/.rvm/gems/ruby-3.0.4:/home/chatwoot/.rvm/gems/ruby-3.0.4@global"
|