Skip to content

Commit

Permalink
feat(api): removed AWS workflow - free tier gone :( (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
emoral435 authored Mar 20, 2024
2 parents 00c7d6b + 3dcc46f commit 318de60
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/Makefile
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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 318de60

Please sign in to comment.