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

18 lignes
393 o
Bash
Brut Vue normale Historique

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