1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/README.md
2018-12-06 03:09:34 +05:00

1.6 KiB

Partynest

Build Status Coverage Status Maintainability Inline docs

Table of contents

Deploy

Tested with Ubuntu Server 18.04 LTS.

System packages

  • build-essential
  • bundler
  • liblzma-dev
  • libpq-dev
  • nodejs
  • npm
  • patch
  • ruby
  • ruby-dev
  • rubygems-integration
  • zlib1g-dev

Steps

  • Create directory /var/www/partynest/ writable by deploy user
  • Copy file config/master.key to /var/www/partynest/shared/config/
  • Create PostgreSQL role partynest with password password
  • Create PostgreSQL database partynest_production owned by partynest

Example systemd service

Replace user with the name of user which you want an application to run with.

[Unit]
After=network.target
Description=Partynest web server

[Service]
ExecStart=/usr/bin/bundle exec rails server --environment production
Restart=always
Type=simple
User=user
WorkingDirectory=/var/www/partynest/current

[Install]
WantedBy=multi-user.target