Commit b7fc670e authored by Malte Schmitz's avatar Malte Schmitz
Browse files

Add CI

parent 8c3d8a65
Pipeline #440 passed with stage
in 0 seconds
stages:
- deploy
deploy_site:
stage: deploy
only:
- master
script:
- cp -r config.ru config.yml contrib Gemfile Gemfile.lock public status.rb status.yml views /opt/nbspstatus/
- sudo systemctl restart nbspstatus
# nbsp Status Website
## Gitlab Continous Deployment
Dieses Repository ist so konfiguriert, dass jeder Commit in den Master-Branch automatisch auf den _produktiven_ Server http://status.nobreakspace.org/ deployed wird. Sei also vorsichtig, dass Du nichts kaputt machst und verwende im Zweifelsfall lieber einen Branch!
## Database
CREATE TABLE status (id integer primary key, timestamp datetime, door_open integer);
CREATE TABLE messages (id integer primary key, timestamp datetime, message text);
```SQL
CREATE TABLE status (id integer primary key, timestamp datetime, door_open integer);
CREATE TABLE messages (id integer primary key, timestamp datetime, message text);
```
## Installation
......@@ -16,10 +22,10 @@
Add the following configuration to `status.rb`:
```
set :port, 80
set :bind, '::'
set :environment, :production
```ruby
set :port, 80
set :bind, '::'
set :environment, :production
```
(This is ugly, because WEBrick is not meant as server for production, but it works.)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment