From 9256ff3eb89362520f85d756d9e364a2e1ea0598 Mon Sep 17 00:00:00 2001 From: c0repwn3r Date: Tue, 7 Feb 2023 14:00:57 -0500 Subject: [PATCH] buildfiles pt5 --- .build.yml | 2 +- .env | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .env diff --git a/.build.yml b/.build.yml index 24011f8..73f24c2 100644 --- a/.build.yml +++ b/.build.yml @@ -15,7 +15,7 @@ tasks: sudo -u postgres chmod 0700 /var/lib/postgresql/data sudo -u postgres initdb -D /var/lib/postgresql/data sudo -u postgres pg_ctl start -D /var/lib/postgresql/data - cd /home/build/trifid + cd /home/build/trifid/trifid-api cargo install sqlx-cli /home/build/.cargo/bin/sqlx database create /home/build/.cargo/bin/sqlx mig run diff --git a/.env b/.env new file mode 100644 index 0000000..752d444 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +DATABASE_URL=postgres://postgres@localhost/trifidapi \ No newline at end of file