-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): removed AWS workflow - free tier gone :( (#32)
- Loading branch information
Showing
1 changed file
with
5 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# NOTE for dev env | ||
# DB_URL=postgresql://root:[email protected]:5432/swole_goal?sslmode=disable | ||
DB_URL=postgresql://root:secret@localhost:5432/swole_goal?sslmode=disable | ||
DB_URL_AWS=postgresql://root:swole-goal.cllc73kmmpqz.us-east-2.rds.amazonaws.com@swole-goal.cllc73kmmpqz.us-east-2.rds.amazonaws.com:5432/swole_goal | ||
# QUICKFIX: if build is somehow not connecting to external DB extensions, and you are using WSL, check if you have a postgres port being listened on by using powershell | ||
# this stack overflow quesiton will guide you well -> https://stackoverflow.com/a/63007311/19919302 | ||
# PERMANENT FIX: check to see if postgres runs on start on windows. if it does, disable that, and see if the problemn persists. | ||
|
@@ -32,6 +33,10 @@ migrateup: # migrates the database 'swole-goal' up to the current migration vers | |
migratedown: # migrates the database 'swole-goal' back to the previous migration version | ||
migrate -path db/migration -database "${DB_URL}" -verbose down | ||
|
||
# for AWS RDS instance only | ||
migrateupaws: # migrates the database 'swole-goal' up to the current migration version | ||
migrate -path db/migration -database "${DB_URL_AWS}" -verbose up | ||
|
||
# generates a new sqlc compiled sql statement to run | ||
sqlc: | ||
sqlc generate | ||
|