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