mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-09-11 13:37:10 +03:00
Fix PostreSQL initialization for Gitpod
This commit is contained in:
parent
95bd9515b8
commit
ef62d58674
12
.gitpod.yml
12
.gitpod.yml
@ -10,7 +10,11 @@ ports:
|
|||||||
- port: 9000
|
- port: 9000
|
||||||
onOpen: ignore
|
onOpen: ignore
|
||||||
tasks:
|
tasks:
|
||||||
- command: redis-server
|
- name: Redis
|
||||||
- before: export NODE_CONFIG="{\"import\":{\"videos\":{\"torrent\":{\"enabled\":false}}},\"webserver\":{\"hostname\":\"$(gp url 3000 | cut -d/ -f3)\",\"port\":\"443\",\"https\":true}}"
|
command: redis-server
|
||||||
init: yarn install --pure-lockfile
|
- name: PeerTube
|
||||||
command: npm run dev
|
before: export NODE_CONFIG="{\"import\":{\"videos\":{\"torrent\":{\"enabled\":false}}},\"webserver\":{\"hostname\":\"$(gp url 3000 | cut -d/ -f3)\",\"port\":\"443\",\"https\":true}}"
|
||||||
|
init: >
|
||||||
|
psql -h localhost -d postgres --file=support/docker/gitpod/setup_postgres.sql &&
|
||||||
|
yarn install --pure-lockfile
|
||||||
|
command: npm run dev
|
||||||
|
@ -9,7 +9,3 @@ RUN sudo apt-get update -q && sudo apt-get install -qy \
|
|||||||
ffmpeg \
|
ffmpeg \
|
||||||
openssl \
|
openssl \
|
||||||
redis-server
|
redis-server
|
||||||
|
|
||||||
# Set up PostgreSQL.
|
|
||||||
COPY --chown=gitpod:gitpod support/docker/gitpod/setup_postgres.sql /tmp/
|
|
||||||
RUN pg_start && psql -h localhost -d postgres --file=/tmp/setup_postgres.sql && pg_stop
|
|
||||||
|
Loading…
Reference in New Issue
Block a user