johan/add-api #7
2 changed files with 4 additions and 4 deletions
|
@ -79,9 +79,9 @@ fi
|
||||||
|
|
||||||
echo "[+] Create separate table with id immeuble index and its state."
|
echo "[+] Create separate table with id immeuble index and its state."
|
||||||
cat > "${tmpSql}" <<EOF
|
cat > "${tmpSql}" <<EOF
|
||||||
CREATE TABLE refimm (IdentifiantImmeuble text NOT NULL, EtatImmeuble text NOT NULL);
|
CREATE TABLE refimm (IdentifiantImmeuble text NOT NULL, EtatImmeuble text NOT NULL, DateDebutAcceptationCmdAcces text NOT NULL);
|
||||||
CREATE UNIQUE INDEX idx_IdentifiantImmeuble on refimm (IdentifiantImmeuble);
|
CREATE UNIQUE INDEX idx_IdentifiantImmeuble on refimm (IdentifiantImmeuble);
|
||||||
INSERT OR REPLACE INTO refimm SELECT IdentifiantImmeuble,EtatImmeuble FROM ipe;
|
INSERT OR REPLACE INTO refimm SELECT IdentifiantImmeuble,EtatImmeuble, DateDebutAcceptationCmdAcces FROM ipe;
|
||||||
EOF
|
EOF
|
||||||
sqlite3 "${fullDbPath}" < "${tmpSql}"
|
sqlite3 "${fullDbPath}" < "${tmpSql}"
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
export PATH="/usr/bin/:/bin/:/srv/www/Axione-FTTH-Test/.poetry/bin/"
|
export PATH="/usr/bin/:/bin/:/srv/www/ftth-ipe-map/.poetry/bin"
|
||||||
poetry install
|
poetry install
|
||||||
poetry run gunicorn -b "localhost:${PORT}" --timeout 120 'main:app'
|
poetry run gunicorn -b "localhost:${PORT}" --timeout 120 'main:app'
|
Loading…
Reference in a new issue