steedos-platform/.gitpod.yml

46 lines
1.3 KiB
YAML
Raw Normal View History

2021-12-27 12:13:46 +00:00
image:
file: .gitpod.Dockerfile
# List the ports you want to expose and what to do when they are served. See https://www.gitpod.io/docs/config-ports/
ports:
- port: 5100
2022-01-14 00:38:48 +00:00
onOpen: open-browser
2021-12-27 12:13:46 +00:00
visibility: public
2022-01-14 00:38:48 +00:00
- port: 6379
onOpen: ignore
- port: 27017
onOpen: ignore
- port: 3100 # Creator
2022-01-14 00:38:48 +00:00
onOpen: open-browser
visibility: public
2021-12-27 12:13:46 +00:00
# List the start up tasks. You can start them in parallel in multiple terminals. See https://www.gitpod.io/docs/config-start-tasks/
tasks:
2022-01-14 00:38:48 +00:00
- name: Mongo
init: |
2021-12-27 12:13:46 +00:00
mkdir -p /workspace/mongodb/data/db
command: |
mongod --replSet rs0 --dbpath /workspace/mongodb/data/db
- command: |
gp await-port 27017
mongo steedos --eval "rs.initiate()"
2022-01-14 00:38:48 +00:00
exit
- name: Redis
command: |
2021-12-31 10:57:12 +00:00
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
2022-01-14 00:41:33 +00:00
- name: Steedos
2022-01-14 00:38:48 +00:00
init: |
2021-12-28 02:08:15 +00:00
yarn
2021-12-27 12:13:46 +00:00
yarn bootstrap
command: |
2022-07-01 11:03:46 +00:00
rm creator/.env.local
cp creator/.env creator/.env.local
sed -i "/^ROOT_URL=*/cROOT_URL=$(gp url 3100)" creator/.env.local
yarn lerna run gitpod:init
2022-07-01 11:14:51 +00:00
yarn build
2021-12-27 12:13:46 +00:00
gp await-port 27017
gp await-port 6379
yarn start
vscode:
extensions:
- dbaeumer.vscode-eslint