Multiple fixes

This commit is contained in:
Cassowary 2023-10-09 09:31:27 -07:00
parent e47a5d6d32
commit 4eedc672a1
5 changed files with 13 additions and 14 deletions

View File

@ -35,7 +35,7 @@ LIMITED_FEDERATION_MODE=false
# Deployment
# ----------
RAILS_ENV=production
RAILS_SERVE_STATIC_FILES=true # might need this for traefik, need to test
RAILS_SERVE_STATIC_FILES=true
# TRUSTED_PROXY_IP=
# External Services

View File

@ -24,12 +24,8 @@ discussed.
See the [`coop-cloud/mastodon` `README.md`](https://git.coopcloud.tech/coop-cloud/mastodon#quick-start).
Watch out in case the Mastodon recipe latest is not the same as the Hometown
latest version! You can switch back to a compatible tag on the Mastodon recipe
to compare docs, config etc. just to be sure.
## Tips & Tricks
See the [`coop-cloud/mastodon` `README.md`](https://git.coopcloud.tech/coop-cloud/mastodon#admin-tips-tricks).
Please only gather tips & tricks that are specific to Hometown here.
Please only gather tips & tricks that are specific to Glitch-soc here.

View File

@ -1,6 +1,6 @@
#!/bin/bash
export ENTRYPOINT_CONF_VERSION=v11
export ENTRYPOINT_CONF_VERSION=v12
# assets() {
# set -x OTP_SECRET $(cat /run/secrets/otp_secret)

View File

@ -3,8 +3,8 @@ version: "3.8"
services:
app:
image: lscr.io/linuxserver/mastodon:glitch-ebd20175-ls78
# command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"
image: yakumosaki/glitch-soc:20230927_13
command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"
networks: &bothNetworks
- proxy
- internal_network
@ -24,8 +24,8 @@ services:
- source: entrypoint_sh
target: /usr/local/bin/entrypoint.sh
mode: 0555
# entrypoint: &entrypoint /usr/local/bin/entrypoint.sh
entrypoint: &entrypoint ['tail', '-f', '/dev/null']
entrypoint: &entrypoint /usr/local/bin/entrypoint.sh
# entrypoint: &entrypoint ['tail', '-f', '/dev/null']
volumes: &appVolume
- app:/opt/mastodon/public/system
#healthcheck:

View File

@ -30,15 +30,18 @@ file_env "DB_PASS"
file_env "SMTP_PASSWORD"
file_env "VAPID_PRIVATE_KEY"
export RAILS_ENV=production
{{ if eq (env "OIDC_ENABLED") "true" }}
file_env "OIDC_CLIENT_SECRET"
{{ end }}
export RAILS_ENV=production
bundle exec rake db:setup || /bin/true
#bundle exec rake webpacker:verify_install || bundle exec rake webpacker:install
# bundle exec rake webpacker:verify_install || bundle exec rake webpacker:install
#bundle exec rake webpacker:yarn_install
bundle exec rake assets:precompile || /bin/true
# bundle exec rake assets:clobber
# bundle exec rake assets:precompile || /bin/true
/usr/bin/tini -s -- "$@"