chasing deployment problems

This commit is contained in:
Christoph Haas 2025-05-16 08:56:14 +02:00
parent 3817fa76ec
commit 662bcd00d3
5 changed files with 39 additions and 22 deletions

View file

@ -29,6 +29,7 @@
!/storage/.keep
/tmp/storage/*
!/tmp/storage/.keep
/tmp/cache/*
# Ignore assets.
/node_modules/
@ -52,3 +53,6 @@
# Ignore test screenshots
/public/shrine
/public/cache
/doc

View file

@ -7201,11 +7201,6 @@ a.black {
height: 1.5em;
}
.menu .menu-text {
font-size: 1.4rem;
line-height: 2rem;
}
/*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com */
.pswp {
--pswp-bg: #000;

View file

@ -631,8 +631,3 @@ a.black
width: 1.5em;
height: 1.5em;
}
.menu .menu-text {
font-size: 1.4rem;
line-height: 2;
}

View file

@ -11,18 +11,18 @@ production:
# database: storage/production.sqlite3
url: <%= ENV['DATABASE_URL'] %>
pool: 10
cache:
<<: *default
database: storage/production_cache.sqlite3
migrations_paths: db/cache_migrate
queue:
<<: *default
database: storage/production_queue.sqlite3
migrations_paths: db/queue_migrate
cable:
<<: *default
database: storage/production_cable.sqlite3
migrations_paths: db/cable_migrate
# cache:
# <<: *default
# database: storage/production_cache.sqlite3
# migrations_paths: db/cache_migrate
# queue:
# <<: *default
# database: storage/production_queue.sqlite3
# migrations_paths: db/queue_migrate
# cable:
# <<: *default
# database: storage/production_cable.sqlite3
# migrations_paths: db/cable_migrate
development:
<<: *default

23
docker-compose.yml Normal file
View file

@ -0,0 +1,23 @@
version: '3'
services:
postgres:
image: postgres:16
volumes:
- db_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: debshots
POSTGRES_PASSWORD: debshots
POSTGRES_DB: debshots
web:
build: .
depends_on:
- postgres
#command: bash -c "rm -f tmp/pids/server.pid && rails server -b 0.0.0.0"
volumes:
- .:/opt/app
ports:
- "3333:3000"
environment:
DATABASE_URL: postgres://debshots:debshots@postgres:5432/debshots
volumes:
db_data: