Skip to content

Commit

Permalink
fix deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-sinina committed Sep 27, 2018
1 parent 384b6e5 commit 85c4e00
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/puma.rb.distr
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ stdout_redirect '/var/log/oms/puma.stdout', '/var/log/oms/puma.stderr', true
# bind 'unix:///var/run/puma.sock'
# bind 'unix:///var/run/puma.sock?umask=0111'
# bind 'ssl://127.0.0.1:9292?key=path_to_key&cert=path_to_cert'
bind 'tcp://127.0.0.1:3000'
bind 'unix:///var/run/oms/socket'

# Instead of "bind 'ssl://127.0.0.1:9292?key=path_to_key&cert=path_to_cert'" you
# can also use the "ssl_bind" option.
Expand Down
10 changes: 7 additions & 3 deletions debian/onat-management-system.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,19 @@ WantedBy=multi-user.target
[Service]
Type=forking
PIDFile=/var/run/oms/oms.pid
#WorkingDirectory=/opt/oms
WorkingDirectory=/opt/oms
RuntimeDirectory=oms
User=oms
#User=oms
LimitNOFILE=65536
LimitCORE=infinity
Environment=PATH=/usr/bin:/opt/oms/vendor/bundler/bin:$PATH
EnvironmentFile=/etc/oms/environment
Environment=BUNDLE_GEMFILE=/opt/oms/Gemfile
Environment=GEM_HOME=/opt/oms/vendor/bundle
Environment=RAILS_ENV=production
Environment=GEM_PATH=/opt/oms/vendor/bundler:/opt/oms/vendor/bundle
ExecStart=/usr/bin/ruby /opt/oms/vendor/bundler/bin/bundle exec puma -C /etc/oms/puma.rb
ExecStart=/usr/bin/ruby /opt/oms/vendor/bundler/bin/bundle exec puma -C /etc/oms/puma.rb --daemon
ExecStop=/usr/bin/ruby /opt/oms/vendor/bundler/bin/bundle exec pumactl -S /var/run/oms/puma.state stop

Restart=on-abnormal

0 comments on commit 85c4e00

Please sign in to comment.