mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-20 04:19:18 +00:00
mastodon: redirect logs to files
This commit is contained in:
parent
02a80f96bc
commit
f4be378e23
@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd /mastodon
|
cd /mastodon
|
||||||
exec bundle exec sidekiq -c $SIDEKIQ_WORKERS -q default -q push -q pull -q mailers
|
exec bundle exec sidekiq -c $SIDEKIQ_WORKERS -q default -q push -q pull -q mailers > ./log/sidekiq.log 2>&1
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd /mastodon
|
cd /mastodon
|
||||||
exec npm run start
|
exec npm run start > ./log/streaming.log 2>&1
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd /mastodon
|
cd /mastodon
|
||||||
exec bundle exec rails s -p 3000 -b '0.0.0.0'
|
exec bundle exec puma -C config/puma.rb > ./log/web.log 2>&1
|
||||||
|
@ -18,9 +18,17 @@ A GNU Social-compatible microblogging server
|
|||||||
https://github.com/tootsuite/mastodon
|
https://github.com/tootsuite/mastodon
|
||||||
17j2g7vpgHhLuXhN4bueZFCvdxxieyRVWd
|
17j2g7vpgHhLuXhN4bueZFCvdxxieyRVWd
|
||||||
---------------------------------------------
|
---------------------------------------------
|
||||||
|
UID/GID settings
|
||||||
|
---------------------------------------------
|
||||||
User ID : ${UID}
|
User ID : ${UID}
|
||||||
Group ID : ${GID}
|
Group ID : ${GID}
|
||||||
---------------------------------------------
|
---------------------------------------------
|
||||||
|
Logs location
|
||||||
|
---------------------------------------------
|
||||||
|
Sidekiq : /mastodon/log/sidekiq.log
|
||||||
|
Streaming : /mastodon/log/streaming.log
|
||||||
|
Web : /mastodon/log/web.log
|
||||||
|
---------------------------------------------
|
||||||
"
|
"
|
||||||
|
|
||||||
echo "Creating mastodon user..."
|
echo "Creating mastodon user..."
|
||||||
@ -40,7 +48,7 @@ if [ "$RUN_DB_MIGRATIONS" == "true" ]; then
|
|||||||
su-exec mastodon:mastodon rake db:migrate
|
su-exec mastodon:mastodon rake db:migrate
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Executing process..."
|
echo "Executing process(es)..."
|
||||||
if [ '$@' == '' ]; then
|
if [ '$@' == '' ]; then
|
||||||
exec su-exec mastodon:mastodon /bin/s6-svscan /etc/s6.d
|
exec su-exec mastodon:mastodon /bin/s6-svscan /etc/s6.d
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user