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 28f59f0
Show file tree
Hide file tree
Showing 7 changed files with 19 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 && nix develop --command bash -c 'pnpm config set store-dir ~/pnpm-store' && direnv allow"
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
2 changes: 2 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ services:
dockerfile: Dockerfile

volumes:
- nix-store:/nix:cached
- ../..:/workspaces:cached

# Overrides default command so things don't shut down after the process ends.
Expand Down Expand Up @@ -87,5 +88,6 @@ services:
# (Adding the "ports" property to this file will not forward from a Codespace.)

volumes:
nix-store:
postgres-data:
minio-data:
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 28f59f0

Please sign in to comment.