Skip to content

Commit

Permalink
feat: adjust configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
uonr committed Dec 25, 2023
1 parent 81d02de commit 024e754
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 18 deletions.
5 changes: 2 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// This can be used to network with other containers or with the host.
"forwardPorts": [3000, 4841, 9000, 9090, 8080]
"forwardPorts": [3000, 4841, 9000, 9090, 8080],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "yarn install",

"postCreateCommand": "cp .env.local.example .env.local"
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
12 changes: 12 additions & 0 deletions .env.local.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
DATABASE_URL=postgresql://boluo:boluo@db/boluo?sslmode=disable
TEST_DATABASE_URL=postgresql://boluo:boluo@db_test/boluo?sslmode=disable
REDIS_URL=redis://redis:6379
BACKEND_URL=http://127.0.0.1:3000

SECRET=SOME_SECRET
S3_ACCESS_KEY_ID=boluo
S3_SECRET_ACCESS_KEY=boluo-development
S3_ENDPOINT_URL=http://127.0.0.1:9000
S3_BUCKET_NAME=boluo

PUBLIC_MEDIA_URL=http://127.0.0.1:9000/boluo
12 changes: 0 additions & 12 deletions .env.local.template

This file was deleted.

1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

.bin/
/media
.envrc
.env.local
.env*.local
**/*.tsbuildinfo
Expand Down Expand Up @@ -49,4 +48,4 @@ testem.log
.DS_Store
Thumbs.db

.nx/cache
.nx/cache
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"files.associations": {
"tailwind.css": "tailwindcss",
"*.tailwind.css": "tailwindcss",
".env.local.template": "properties"
".env.local.example": "properties"
},
// ESLint
"eslint.workingDirectories": [
Expand Down

0 comments on commit 024e754

Please sign in to comment.