fa37f8e185
Note: Update the ruby version 2.7.3. For production Linux VM, install 2.7.3 and follow the upgrade steps as shown in https://www.chatwoot.com/docs/self-hosted/deployment/linux-vm#upgrading-to-a-newer-version-of-chatwoot
25 lines
885 B
Desktop File
25 lines
885 B
Desktop File
[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
|
|
|
|
Environment="PATH=/home/chatwoot/.rvm/gems/ruby-2.7.3/bin:/home/chatwoot/.rvm/gems/ruby-2.7.3@global/bin:/home/chatwoot/.rvm/rubies/ruby-2.7.3/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"
|
|
Environment="PORT=3000"
|
|
Environment="RAILS_ENV=production"
|
|
Environment="NODE_ENV=production"
|
|
Environment="RAILS_LOG_TO_STDOUT=true"
|
|
Environment="GEM_HOME=/home/chatwoot/.rvm/gems/ruby-2.7.3"
|
|
Environment="GEM_PATH=/home/chatwoot/.rvm/gems/ruby-2.7.3:/home/chatwoot/.rvm/gems/ruby-2.7.3@global"
|