Skip to content
This repository was archived by the owner on Jun 28, 2025. It is now read-only.

Commit 629de66

Browse files
authored
Merge pull request #108 from vim/feat/create-local-env
Feat/create local env
2 parents 060d4da + b01388e commit 629de66

File tree

3 files changed

+41
-16
lines changed

3 files changed

+41
-16
lines changed

.env.example

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,4 @@ DATABASE_CLIENT=mysql2
44
DATABASE_USERNAME=vim
55
DATABASE_PASSWORD=super-secret
66
DATABASE_PORT=3306
7-
DATABASE_SSL=false
8-
9-
WEB_DATABASE_NAME=vim
10-
NEXT_PRIVATE_STANDALONE=true
11-
NEXTAUTH_SECRET=testsecret
12-
13-
CMS_DATABASE_NAME=vim_cms
14-
CMS_HOST=0.0.0.0
15-
CMS_PORT=1337
16-
CMS_APP_KEYS=testkey1,testkey2
17-
CMS_API_TOKEN_SALT=testtoken
18-
CMS_ADMIN_JWT_SECRET=testsecret
19-
CMS_JWT_SECRET=testsecret
20-
CMS_TRANSFER_TOKEN_SALT=testtoken
21-
CMS_DISABLE_UPDATE_NOTIFICATION=false
22-
CMS_TELEMETRY_DISABLED=true
7+
DATABASE_SSL=false

local-startup.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
# Copy .env.example to .env on root
4+
cp .env.example .env
5+
6+
# Copy .env.example to .env on cms
7+
cd cms
8+
cp .env.example .env
9+
cd ..
10+
11+
# Copy .env.example to .env on web
12+
cd web
13+
cp .env.example .env
14+
cd ..
15+
16+
echo "All .env.example contents have been copied to .env"
17+
18+
docker compose -f docker-compose.local.yml up

web/.env.example

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
NODE_ENV=development
2+
3+
DATABASE_CLIENT=mysql2
4+
DATABASE_USERNAME=vim
5+
DATABASE_PASSWORD=super-secret
6+
DATABASE_PORT=3306
7+
DATABASE_SSL=false
8+
9+
WEB_DATABASE_NAME=vim
10+
NEXT_PRIVATE_STANDALONE=true
11+
NEXTAUTH_SECRET=testsecret
12+
13+
CMS_DATABASE_NAME=vim_cms
14+
CMS_HOST=0.0.0.0
15+
CMS_PORT=1337
16+
CMS_APP_KEYS=testkey1,testkey2
17+
CMS_API_TOKEN_SALT=testtoken
18+
CMS_ADMIN_JWT_SECRET=testsecret
19+
CMS_JWT_SECRET=testsecret
20+
CMS_TRANSFER_TOKEN_SALT=testtoken
21+
CMS_DISABLE_UPDATE_NOTIFICATION=false
22+
CMS_TELEMETRY_DISABLED=true

0 commit comments

Comments
 (0)