Spaces:
Runtime error
Runtime error
Update docker-entrypoint.sh
Browse files- docker-entrypoint.sh +2 -2
docker-entrypoint.sh
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
-
# Replace user and password in the config/index.js file
|
4 |
sed -i "s/YOUR_USERNAME/$USER/" config/index.js
|
5 |
sed -i "s/YOUR_PASSWORD/$PASSWORD/" config/index.js
|
6 |
|
7 |
# If you need any other settings, you can modify them here
|
8 |
|
9 |
-
# Run any other initial setup you need, for example client build
|
10 |
npm run client:build
|
11 |
|
12 |
# Finally, run the original command passed to the container
|
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
+
# Replace user and password in the config/index.js file in-place
|
4 |
sed -i "s/YOUR_USERNAME/$USER/" config/index.js
|
5 |
sed -i "s/YOUR_PASSWORD/$PASSWORD/" config/index.js
|
6 |
|
7 |
# If you need any other settings, you can modify them here
|
8 |
|
9 |
+
# Run any other initial setup you need, for example, client build
|
10 |
npm run client:build
|
11 |
|
12 |
# Finally, run the original command passed to the container
|