mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-21 21:40:48 +02:00
Add the obsidian link support to config also. Fix poll-for-db.
This commit is contained in:
parent
4c031c7699
commit
7a9dd6cd6f
3 changed files with 5 additions and 3 deletions
|
@ -13,7 +13,7 @@ RUN bundle install --jobs 4
|
|||
|
||||
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
|
||||
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
|
||||
RUN apt-get update && apt-get install -y yarn
|
||||
RUN apt-get update && apt-get install -y yarn netcat
|
||||
|
||||
RUN mkdir /app/log
|
||||
|
||||
|
|
|
@ -7,4 +7,4 @@ safe_list =
|
|||
Loofah::HTML5::WhiteList
|
||||
end
|
||||
|
||||
safe_list::ALLOWED_PROTOCOLS.merge(%w(message onenote))
|
||||
safe_list::ALLOWED_PROTOCOLS.merge(%w(message onenote obsidian))
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "==> Polling DB…"
|
||||
|
||||
appdir=$(cd $(dirname "$0")/.. && pwd)
|
||||
[ -f /etc/app-env ] || exec "$appdir/script/docker-environment" $0 $@
|
||||
|
||||
for i in {1..60}; do
|
||||
curl -sf telnet://db:3306 >/dev/null && exit
|
||||
nc -z -w5 db 3306 && exit
|
||||
sleep 1
|
||||
done
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue