You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* chore: update development script to set NODE_ENV for improved environment handling
* feat: add development environment support for configuration management
* feat: add environment configuration files for development and production
* chore: simplify development script by removing NODE_ENV setting
* feat: enhance environment loading by adding dynamic file selection and logging
* feat: add NODE_ENV settings and environment config files for production and development
* refactor: remove unused development environment function and related configuration
* chore: update docker-compose configuration
* chore: update production environment variables for development server
* chore: update .gitignore to include .env.development.example and adjust environment variable exclusions
* chore: remove .env.development file
* chore: add example development environment configuration file
* chore: standardize environment configuration by replacing .env.local with .env
* chore: consolidate environment configuration by removing .env.development.example and updating .env.example
* chore: clean up environment configuration by removing commented-out sections
Copy file name to clipboardExpand all lines: DOCKER.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,15 +6,15 @@ This document explains how to run the webdev-bot using Docker.
6
6
7
7
- Docker installed (version 20.10 or higher)
8
8
- Docker Compose installed (version 2.0 or higher)
9
-
-`.env.local` file with required environment variables
9
+
-`.env` file with required environment variables
10
10
11
11
## Node Version Management
12
12
13
13
The Docker setup uses `.nvmrc` as the single source of truth for the Node.js version. The Dockerfile automatically reads this version at build time via the `NODE_VERSION` build argument. No need to manually sync versions between `.nvmrc` and Docker files.
14
14
15
15
## Environment Variables
16
16
17
-
Before running the bot, create a `.env.local` file in the project root with the following variables:
17
+
Before running the bot, create a `.env` file in the project root with the following variables:
18
18
19
19
```env
20
20
DISCORD_TOKEN=your_discord_bot_token
@@ -104,7 +104,7 @@ Run the production container manually (after building with the NODE_VERSION arg)
104
104
```bash
105
105
docker run -d \
106
106
--name webdev-bot \
107
-
--env-file .env.local \
107
+
--env-file .env \
108
108
--restart unless-stopped \
109
109
webdev-bot:latest
110
110
```
@@ -114,7 +114,7 @@ Run the development container manually (after building with the NODE_VERSION arg
0 commit comments