pinball tournament app https://nomipinball.bhh.sh
Go to file
Ben Harris 0d71b8b90d bump deps and use ruby 3.1.2 2022-06-20 16:14:12 -04:00
.idea bump deps and use ruby 3.1.2 2022-06-20 16:14:12 -04:00
app fix double-display on randomize.html.erb 2022-02-01 09:51:25 -05:00
bin init 2022-01-15 12:10:26 -05:00
config tidy up, add git hash to src link 2022-01-31 14:28:00 -05:00
db bump deps and use ruby 3.1.2 2022-06-20 16:14:12 -04:00
lib init 2022-01-15 12:10:26 -05:00
log init 2022-01-15 12:10:26 -05:00
public init 2022-01-15 12:10:26 -05:00
storage init 2022-01-15 12:10:26 -05:00
test tidy up, add git hash to src link 2022-01-31 14:28:00 -05:00
tmp init 2022-01-15 12:10:26 -05:00
vendor init 2022-01-15 12:10:26 -05:00
.gitattributes init 2022-01-15 12:10:26 -05:00
.gitignore switch to table, add total counts 2022-01-31 14:00:13 -05:00
.ruby-version bump deps and use ruby 3.1.2 2022-06-20 16:14:12 -04:00
Gemfile bump deps and use ruby 3.1.2 2022-06-20 16:14:12 -04:00
Gemfile.lock bump deps and use ruby 3.1.2 2022-06-20 16:14:12 -04:00
README.md bump deps and use ruby 3.1.2 2022-06-20 16:14:12 -04:00
Rakefile init 2022-01-15 12:10:26 -05:00
config.ru init 2022-01-15 12:10:26 -05:00

README.md

pinrails

just a silly little site to help run the pinball tournaments at the coin slot.

currently running on ruby 3.1.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