Commit 00732906 authored by Boxiang Sun's avatar Boxiang Sun

peertube: service fixup

parent cc04abf8
......@@ -6,11 +6,11 @@ parts =
service-redis
promise-redis
postgresql
nginx-service
nginx-listen-promise
peertube-yaml
nginx-service
peertube-service
publish-connection-parameter
nginx-listen-promise
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
......
......@@ -68,8 +68,7 @@ path = ${peertube:location}
environment =
PATH=${unzip:location}/bin:${vim:location}/bin:${nodejs:location}/bin:${yarn:location}/bin:${python3:location}/bin:${nginx:location}/sbin:${postgresql10:location}/bin:${gcc-10.2:location}/bin:${redis:location}/bin:{git:location}/bin:{wget:location}/bin:%(PATH)s
CPPFLAGS=-I${openssl:location}/include
LDFLAGS=-L${curl:location}/lib -Wl,-rpath -Wl,${openssl:location}/lib -Wl, -L${libvpx:location}/lib -Wl,-rpath=${libvpx:location}/lib -rpath -Wl
LD_LIBRARY_PATH=${libvpx:location}/lib
LDFLAGS=-L${curl:location}/lib -Wl,-rpath -Wl,${openssl:location}/lib -Wl
pre-configure =
${yarn:location}/bin/yarn install --production --pure-lockfile
configure-command = true
......
......@@ -28,5 +28,7 @@ while true; do
done
echo "I: PostgreSQL ready." 1>&2
exec env NODE_ENV=production NODE_CONFIG_DIR=$${directory:config} PATH=${ffmpeg:location}/bin:$PATH\
cd ${peertube:location}
exec env NODE_ENV=peertube NODE_CONFIG_DIR=$${directory:config} PATH=${ffmpeg:location}/bin:$PATH\
${nodejs:location}/bin/node ${peertube:location}/dist/server
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment