buildfiles pt5

This commit is contained in:
c0repwn3r 2023-02-07 14:00:57 -05:00
parent 29431551b8
commit 9256ff3eb8
Signed by: core
GPG Key ID: FDBF740DADDCEECF
2 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,7 @@ tasks:
sudo -u postgres chmod 0700 /var/lib/postgresql/data sudo -u postgres chmod 0700 /var/lib/postgresql/data
sudo -u postgres initdb -D /var/lib/postgresql/data sudo -u postgres initdb -D /var/lib/postgresql/data
sudo -u postgres pg_ctl start -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 cargo install sqlx-cli
/home/build/.cargo/bin/sqlx database create /home/build/.cargo/bin/sqlx database create
/home/build/.cargo/bin/sqlx mig run /home/build/.cargo/bin/sqlx mig run

1
.env Normal file
View File

@ -0,0 +1 @@
DATABASE_URL=postgres://postgres@localhost/trifidapi