Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Ce dépôt a été archivé le 2022-05-07. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
nyaa-pantsu/deploy/init.sh

17 lignes
375 o
Bash
Brut Vue normale Historique

2017-05-06 00:34:41 -04:00
#!/bin/bash
2017-05-06 19:17:13 -04:00
set -eux
2017-05-06 00:34:41 -04:00
2017-05-06 14:49:12 -04:00
# TODO Doesn't scale, find another way to wait until db is ready
2017-05-06 19:17:13 -04:00
if [[ "${PANTSU_DBTYPE}" = "postgres" ]]; then
echo 'Waiting for the database to be ready...'
sleep 40
fi
2017-05-06 00:34:41 -04:00
go get github.com/ewhal/nyaa
go build
./nyaa -host 0.0.0.0 \
-port "${PANTSU_INTERNAL_PORT}" \
-dbtype "${PANTSU_DBTYPE}" \
-dbparams "${PANTSU_DBPARAMS}"