1
0
Fork 0
This repository has been archived on 2023-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/README.md

65 lines
1.6 KiB
Markdown
Raw Normal View History

2018-11-22 19:35:04 +00:00
Partynest
=========
2018-11-28 14:43:05 +00:00
[![Build Status](https://travis-ci.org/lpr-perm/partynest.svg?branch=master)](https://travis-ci.org/lpr-perm/partynest)
2018-11-28 14:55:18 +00:00
[![Coverage Status](https://coveralls.io/repos/github/lpr-perm/partynest/badge.svg)](https://coveralls.io/github/lpr-perm/partynest)
2018-11-29 23:12:06 +00:00
[![Maintainability](https://api.codeclimate.com/v1/badges/c156d8af7a63f8d3166b/maintainability)](https://codeclimate.com/github/lpr-perm/partynest/maintainability)
2018-12-03 12:55:05 +00:00
[![Inline docs](http://inch-ci.org/github/lpr-perm/partynest.svg?branch=master)](http://inch-ci.org/github/lpr-perm/partynest)
2018-12-05 19:52:50 +00:00
Table of contents
-----------------
* [Overview](#partynest)
* [Table of contents](#table-of-contents)
2018-12-05 20:31:14 +00:00
* [Deploy](#deploy)
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`
2018-12-05 21:28:51 +00:00
### 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
```