create-steedos-app 2.1.75 → 2.1.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/createSteedosApp.js +1 -0
- package/package.json +2 -2
- package/templates/default/.scripts/env.sh +7 -0
- package/templates/default/.scripts/setup.sh +1 -9
- package/templates/default/Dockerfile +2 -1
- package/templates/default/env +1 -0
- package/templates/default/gitpod.yml +2 -1
- package/templates/default/steedos-config.yml +2 -0
package/createSteedosApp.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-steedos-app",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.82",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"steedos"
|
|
6
6
|
],
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"resolutions": {
|
|
36
36
|
"**/chalk": "3.0.0"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "37d20586b08a6f8c88d6d1b60ddb92228260fdde"
|
|
39
39
|
}
|
|
@@ -2,12 +2,4 @@
|
|
|
2
2
|
mkdir -p /workspace/mongodb/data/db
|
|
3
3
|
|
|
4
4
|
# create .env.local
|
|
5
|
-
cp .env .env.local
|
|
6
|
-
|
|
7
|
-
# replace ROOT_URL
|
|
8
|
-
root_replacement="ROOT_URL=$(gp url 5000)"
|
|
9
|
-
sed -i "/^ROOT_URL=*/c$root_replacement" .env.local
|
|
10
|
-
|
|
11
|
-
# replace METADATA_SERVER
|
|
12
|
-
meta_replacement="METADATA_SERVER=$(gp url 5000)"
|
|
13
|
-
sed -i "/^METADATA_SERVER=*/c$meta_replacement" .env.local
|
|
5
|
+
cp .env .env.local
|
|
@@ -9,6 +9,7 @@ ADD steedos-app ./steedos-app/
|
|
|
9
9
|
ADD package.json .
|
|
10
10
|
ADD moleculer.config.js .
|
|
11
11
|
ADD steedos-config.yml ./steedos-config.yml
|
|
12
|
+
ADD .scripts ./.scripts/
|
|
12
13
|
|
|
13
14
|
# RUN npm config set registry http://registry.npm.taobao.org/
|
|
14
15
|
# RUN yarn config set registry http://registry.npm.taobao.org/
|
|
@@ -17,4 +18,4 @@ RUN yarn
|
|
|
17
18
|
|
|
18
19
|
ENV NODE_ENV=production
|
|
19
20
|
|
|
20
|
-
CMD ["yarn", "start"]
|
|
21
|
+
CMD ["yarn", "start"]
|
package/templates/default/env
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
image: ecr.aws.steedos.cn/dockerhub/steedos/gitpod-workspace-base:
|
|
1
|
+
image: ecr.aws.steedos.cn/dockerhub/steedos/gitpod-workspace-base:2.1
|
|
2
2
|
|
|
3
3
|
# List the ports you want to expose and what to do when they are served. See https://www.gitpod.io/docs/config-ports/
|
|
4
4
|
ports:
|
|
@@ -32,6 +32,7 @@ tasks:
|
|
|
32
32
|
init: |
|
|
33
33
|
yarn install
|
|
34
34
|
command: |
|
|
35
|
+
sh ./.scripts/env.sh
|
|
35
36
|
gp await-port 27017
|
|
36
37
|
gp await-port 6379
|
|
37
38
|
yarn start
|