Fix permission error when writing admin credentials
Mirror to GitHub / mirror (push) Successful in 25s
Test and Lint / backend-test (push) Successful in 1m21s
continuous-integration/drone/push Build is passing
Test and Lint / frontend-test (push) Successful in 2m0s
Version and Release / version-bump (push) Successful in 28s
Version and Release / trigger-drone (push) Has been skipped
Mirror to GitHub / mirror (push) Successful in 25s
Test and Lint / backend-test (push) Successful in 1m21s
continuous-integration/drone/push Build is passing
Test and Lint / frontend-test (push) Successful in 2m0s
Version and Release / version-bump (push) Successful in 28s
Version and Release / trigger-drone (push) Has been skipped
- Changed credential file location from /app/ to /app/data/ - Added directory creation with recursive flag - Updated console messages to show correct file location - The data/ directory is already owned by nodejs user in Dockerfile The error occurred because the nodejs user doesn't have write permission to /app/ directory, but does have permission to /app/data/ which is explicitly created and chowned in the Dockerfile.
This commit is contained in:
+1
-1
@@ -180,7 +180,7 @@ docker-compose up -d
|
||||
# Run database migrations
|
||||
docker-compose exec backend npm run migrate
|
||||
|
||||
# Admin credentials will be displayed and saved to ADMIN_CREDENTIALS.txt
|
||||
# Admin credentials will be displayed and saved to /data/ADMIN_CREDENTIALS.txt
|
||||
```
|
||||
|
||||
#### Step 4: Configure Nginx
|
||||
|
||||
Reference in New Issue
Block a user