about summary refs log tree commit diff
path: root/README.md
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2022-02-01 09:38:44 -0500
committerBen Harris <ben@tilde.team>2022-02-01 09:38:44 -0500
commit9150b575075db8a2de75ab476c9c7801d2352242 (patch)
treee336d6242e6f7f9a10f4b040947e0a16414cb73b /README.md
parentc00902c956dd336fa1bdc74603312c1c95ac9d6b (diff)
tidy up a bit
Diffstat (limited to 'README.md')
-rw-r--r--README.md75
1 files changed, 51 insertions, 24 deletions
diff --git a/README.md b/README.md
index 7db80e4..3d0b7b9 100644
--- a/README.md
+++ b/README.md
@@ -1,24 +1,51 @@
-# README
-
-This README would normally document whatever steps are necessary to get the
-application up and running.
-
-Things you may want to cover:
-
-* Ruby version
-
-* System dependencies
-
-* Configuration
-
-* Database creation
-
-* Database initialization
-
-* How to run the test suite
-
-* Services (job queues, cache servers, search engines, etc.)
-
-* Deployment instructions
-
-* ...
+# [pinrails](https://nomipinball.bhh.sh)
+
+just a silly little site to help run the pinball tournaments at
+[the coin slot](https://thecoinslottc.com/).
+
+currently running on ruby 3.0.2
+
+    bundle install
+    RAILS_ENV=production bundle exec rails db:migrate
+    RAILS_ENV=production bundle exec assets:precompile
+
+## nginx config:
+
+    server {
+        listen 80;
+        server_name nomipinball.bhh.sh;
+        return 307 https://$server_name$request_uri;
+    }
+    
+    server {
+        listen 443 ssl;
+        include snippets/ssl/bhh.sh;
+        root /srv/pinrails/pinrails/public;
+        server_name nomipinball.bhh.sh;
+    
+        try_files $uri $uri/index.html $uri.html @rails_app;
+    
+        location @rails_app {
+            include proxy_params;
+            proxy_pass http://localhost:4000;
+        }
+    }
+
+## /etc/systemd/system/pinrails.service
+
+    [Unit]
+    Description=pinrails
+    Wants=network.target
+    
+    [Service]
+    Type=simple
+    User=pinrails
+    Group=nogroup
+    WorkingDirectory=/srv/pinrails/pinrails
+    Environment=RAILS_ENV=production
+    Environment=PORT=4000
+    Environment=RAILS_LOG_TO_STDOUT=true
+    ExecStart=/srv/pinrails/.rbenv/shims/bundle exec rails server -b 127.0.0.1
+    
+    [Install]
+    WantedBy=multi-user.target