A web application to manage political party
app | ||
bin | ||
config | ||
db | ||
factories | ||
features | ||
fixtures | ||
lib | ||
log | ||
public | ||
script | ||
spec | ||
storage | ||
tmp | ||
vendor | ||
.gitignore | ||
.rubocop.yml | ||
.ruby-gemset | ||
.ruby-version | ||
.simplecov | ||
.travis.yml | ||
.yardopts | ||
Capfile | ||
CODE_OF_CONDUCT.md | ||
config.ru | ||
Gemfile | ||
Gemfile.lock | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
Rakefile | ||
README.md |
Partynest
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 passwordpassword
- Create PostgreSQL database
partynest_production
owned bypartynest
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