Skip to content

reneweteling/weteling.com

Repository files navigation

semantic-release Commitizen friendly

Weteling.com

Getting started

# 1 - get the latest prod data
ssh weteling.com dokku postgres:export weteling | > volumes/db-data/live.pgdump

# 2 - start the app
docker compose up

Debugging tools

# have docker compose up running

docker compose up -d
docker compose exec web bash
-->
bin/rails s

docker ps
docker stats
docker attach <img id>

Dokku setup

    dokku storage:mount weteling /home/dokku/weteling/static/assets:/app/public/assets
    dokku storage:mount weteling /home/dokku/weteling/static/packs:/app/public/packs

/home/dokku/weteling/nginx.conf.d/static.conf

location ~ ^/assets|packs/ {
    root /home/dokku/weteling/static;
    gzip_static on;
    expires max;
    add_header Cache-Control public;
}