Restore bank_db credentials and ignore local database artifacts.
Revert example database settings in Docker and docs, fix Makefile migrate target, and gitignore local bank_db dumps and schema files. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -61,6 +61,11 @@ temp/
|
||||
# Local docs
|
||||
README_2.md
|
||||
|
||||
# Local database artifacts
|
||||
bank_db.sql
|
||||
bank_db.dump
|
||||
bank_db_schema.drawio
|
||||
|
||||
# Debug
|
||||
__debug_bin
|
||||
debug
|
||||
|
||||
6
Makefile
6
Makefile
@@ -7,10 +7,10 @@ create-migration:
|
||||
migrate create -ext sql -dir db/migrations -tz Local init
|
||||
|
||||
# --- for Macos
|
||||
migrate:
|
||||
migrate -database 'postgres://example_user:example_password@localhost:5424/example_db?sslmode=disable' -path db/migrations up
|
||||
migrate:
|
||||
migrate -database 'postgres://bank_admin:bank@#23#@_password@localhost:5424/bank_db?sslmode=disable' -path db/migrations up
|
||||
migrate-rollback:
|
||||
migrate -database 'postgres://example_user:example_password@localhost:5424/example_db?sslmode=disable' -path db/migrations down
|
||||
migrate -database 'postgres://bank_admin:bank@#23#@_password@localhost:5424/bank_db?sslmode=disable' -path db/migrations down
|
||||
|
||||
# ---- for linux
|
||||
# migrate:
|
||||
|
||||
@@ -142,8 +142,8 @@ jwt_key: <your-jwt-secret>
|
||||
storage:
|
||||
host: main-db # use localhost when running outside Docker
|
||||
port: 5432
|
||||
database: example_db
|
||||
username: example_user
|
||||
database: bank_db
|
||||
username: bank_admin
|
||||
password: <password>
|
||||
pg_pool_max_conn: 10
|
||||
public_file_path: ./public
|
||||
|
||||
@@ -8,9 +8,9 @@ storage:
|
||||
# host: localhost
|
||||
port: 5432
|
||||
# port: 5424
|
||||
database: example_db
|
||||
username: example_user
|
||||
password: example_password
|
||||
database: bank_db
|
||||
username: bank_admin
|
||||
password: bank@#23#@_password
|
||||
pg_pool_max_conn: 10
|
||||
app_version: 0.0.1
|
||||
public_file_path: ./public
|
||||
|
||||
@@ -6,9 +6,9 @@ services:
|
||||
container_name: "main-db"
|
||||
restart: always
|
||||
environment:
|
||||
- POSTGRES_USER=example_user
|
||||
- POSTGRES_PASSWORD=example_password
|
||||
- POSTGRES_DB=example_db
|
||||
- POSTGRES_USER=bank_admin
|
||||
- POSTGRES_PASSWORD=bank@#23#@_password
|
||||
- POSTGRES_DB=bank_db
|
||||
ports:
|
||||
- '5424:5432'
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user