Skip to content

Instantly share code, notes, and snippets.

@reynardmh
reynardmh / puma-myapp.service
Created April 7, 2021 22:46
Template: Puma systemd for rails app using rvm
# Place this in /etc/systemd/system/puma-myapp.service
[Unit]
Description=Myapp Puma Server
After=network.target
[Service]
Type=simple
User=ubuntu
EnvironmentFile=/var/www/myapp/current/.env
@reynardmh
reynardmh / gist:bc3c56bfd2f2866ef13a769394eb6c83
Created July 1, 2016 16:13 — forked from trcarden/gist:3295935
Rails 3.2.7 SSL Localhost (no red warnings, no apache config)
# SSL self signed localhost for rails start to finish, no red warnings.
# 1) Create your private key (any password will do, we remove it below)
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key

Keybase proof

I hereby claim:

  • I am reynardmh on github.
  • I am reynardmh (https://keybase.io/reynardmh) on keybase.
  • I have a public key whose fingerprint is 6FBF 0134 A374 D9FB 8F3B DB67 D486 555F 815F 42E1

To claim this, I am signing this object: