create-steedos-app 2.2.29 → 2.2.32
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/package.json +2 -2
- package/templates/default/.scripts/setup.sh +4 -1
- package/templates/default/.scripts/tailscale.sh +7 -0
- package/templates/default/.scripts/tailscaled.sh +6 -0
- package/templates/default/.steedos/_package.json +2 -2
- package/templates/default/.steedos/yarn.lock +17 -0
- package/templates/default/README.md +3 -3
- package/templates/default/gitpod.yml +5 -5
- package/templates/default/services/sidecar-server.service.js +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-steedos-app",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.32",
|
|
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": "8a0d14e924e75e55863035617981d75acb0f32bb"
|
|
39
39
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
if [ -n "${TAILSCALE_STATE_MYPROJECT}" ]; then
|
|
2
|
+
sudo -E tailscale up
|
|
3
|
+
else
|
|
4
|
+
sudo -E tailscale up --hostname "gitpod-${GITPOD_GIT_USER_NAME// /-}-$(echo ${GITPOD_WORKSPACE_CONTEXT} | jq -r .repository.name)"
|
|
5
|
+
# store the tailscale state into gitpod user
|
|
6
|
+
gp env TAILSCALE_STATE_MYPROJECT="$(sudo cat /var/lib/tailscale/tailscaled.state)"
|
|
7
|
+
fi
|
|
@@ -16,3 +16,20 @@
|
|
|
16
16
|
version "2.1.46"
|
|
17
17
|
resolved "https://registry.npmmirror.com/@steedos-labs/workflow/download/@steedos-labs/workflow-2.1.46.tgz#f123666881d0527ab7f56ab706a60232170ae9b7"
|
|
18
18
|
integrity sha512-M0zzmH2XJNEGFpdBNj7RmLlNCYE0ToYRfrXIuoKycgY2rqieQNVxYqCFl+MTvtVrRgsTAut0NEBDkNc5ikwR/g==
|
|
19
|
+
|
|
20
|
+
"@steedos/service-plugin-amis@2.2.12":
|
|
21
|
+
version "2.2.12"
|
|
22
|
+
resolved "https://registry.yarnpkg.com/@steedos/service-plugin-amis/-/service-plugin-amis-2.2.12.tgz#c7bb705657092c166c2a2d0b7a219f44e51d86aa"
|
|
23
|
+
integrity sha512-F0lZdn60vKz3tGjA8imBXqtoPgfN+DobwxRjQD2aCug9o+VVeNcpWqbnefILqNz/KGakdXfQeZhyrd2kCnHbRA==
|
|
24
|
+
|
|
25
|
+
"@steedos/webapp-accounts@^2.2.12":
|
|
26
|
+
version "2.2.12"
|
|
27
|
+
resolved "https://registry.yarnpkg.com/@steedos/webapp-accounts/-/webapp-accounts-2.2.12.tgz#eb4e53cadd6d779b4d6101341c19bae12b4839c2"
|
|
28
|
+
integrity sha512-d1KkChTHafeDn6HD+Eql+ab8nrcjv6Ul0gfesp6dx+Zh6dilHkMyZtn6F8rpcH1tGMIzW8Wv4HPPGcv5yprOeA==
|
|
29
|
+
dependencies:
|
|
30
|
+
lodash "^4.17.21"
|
|
31
|
+
|
|
32
|
+
lodash@^4.17.21:
|
|
33
|
+
version "4.17.21"
|
|
34
|
+
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
|
|
35
|
+
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
|
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
|
|
14
14
|
- **激活华炎魔方**:请参考该 [文档](https://www.steedos.cn/docs/deploy/deploy-activate),注册华炎魔方门户账户,并准备好后续运行项目时激活华炎魔方依赖的两个环境变量。
|
|
15
15
|
|
|
16
|
-
- **注册GitPod账户**:如果没有 [
|
|
16
|
+
- **注册GitPod账户**:如果没有 [Gitlab](https://gitlab.steedos.cn/) 账户,请注册并使用浏览器登录它们。
|
|
17
17
|
|
|
18
18
|
- **Fork项目**:请Fork本项目到本地,后续我们使用GitPod在线开发Fork后的项目的话就可以把开发后的代码提交到Git仓库。
|
|
19
19
|
也可以执行以下命令来创建一个新项目,然后把该项目提交到Git仓库,而不是Fork本项目来创建自己的魔方项目。```npx create-steedos-app my-app```
|
|
20
20
|
|
|
21
21
|
## 运行项目
|
|
22
22
|
|
|
23
|
-
只要在浏览器中输入地址 `https://
|
|
23
|
+
只要在浏览器中输入地址 `https://vscode.steedos.cn/#{之前Fork下来的Git仓库地址}`即可使用 Gitpod 启动远程开发环境,远程开发环境已经安装并初始化好必须的组件,包括 nodejs, mongodb, redis, vscode 等。
|
|
24
24
|
|
|
25
|
-
比如访问地址 <https://
|
|
25
|
+
比如访问地址 <https://vscode.steedos.cn/#https://github.com/steedos/steedos-project-template> 即可在线运行该Git仓库项目,可以把`#`号后面的Git仓库地址换成您希望运行的任何华炎魔方项目的Git仓库地址。
|
|
26
26
|
|
|
27
27
|
在浏览器中打开项目后,会自动执行`yarn`指令安装项目依赖项,并自动执行`yarn start`指令运行项目。
|
|
28
28
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
image: ecr.aws.steedos.cn/dockerhub/steedos/gitpod-workspace-base:2.1
|
|
1
|
+
image: ecr.aws.steedos.cn/dockerhub/steedos/gitpod-workspace-base:2.1.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:
|
|
@@ -20,14 +20,14 @@ tasks:
|
|
|
20
20
|
- name: MongoDB
|
|
21
21
|
init: sh ./.scripts/setup.sh
|
|
22
22
|
command: |
|
|
23
|
-
mongod --replSet rs0 --dbpath /workspace/mongodb/data/db
|
|
23
|
+
mongod --replSet rs0 --bind_ip_all --dbpath /workspace/mongodb/data/db
|
|
24
24
|
- command: |
|
|
25
25
|
gp await-port 27017
|
|
26
|
-
mongo steedos --eval "rs.initiate()"
|
|
26
|
+
mongo steedos --eval "rs.initiate();conf = rs.conf();conf.members[0].host=\"127.0.0.1\";rs.reconfig(conf, {force:true});"
|
|
27
27
|
exit
|
|
28
28
|
- name: Redis
|
|
29
29
|
command: |
|
|
30
|
-
redis-server --save "" --appendonly no --client-output-buffer-limit replica 0 0 0 --client-output-buffer-limit pubsub 0 0 0 --client-output-buffer-limit slave 0 0 0
|
|
30
|
+
redis-server --protected-mode no --save "" --appendonly no --client-output-buffer-limit replica 0 0 0 --client-output-buffer-limit pubsub 0 0 0 --client-output-buffer-limit slave 0 0 0
|
|
31
31
|
- name: Steedos
|
|
32
32
|
init: |
|
|
33
33
|
yarn install
|
|
@@ -44,4 +44,4 @@ vscode:
|
|
|
44
44
|
- steedos.steedosdx-vscode
|
|
45
45
|
- steedos.steedosdx-vscode-core
|
|
46
46
|
- ms-ceintl.vscode-language-pack-zh-hans
|
|
47
|
-
- mongodb.mongodb-vscode
|
|
47
|
+
- mongodb.mongodb-vscode
|