Commit f90c8926 authored by Boxiang Sun's avatar Boxiang Sun

fixup

parent 7668569f
...@@ -5,23 +5,18 @@ parts = ...@@ -5,23 +5,18 @@ parts =
[peertube-instance] [peertube-instance]
recipe = slapos.cookbook:wrapper recipe = slapos.cookbook:wrapper
wrapper-path = $${directory:service}/$${:_buildout_section_name_} wrapper-path = $${directory:service}/$${:_buildout_section_name_}
command-line = sh -c "cd $${directory:versions}; cp -r ${peertube-download:location} ./; command-line = cd $${directory:versions}; cp -r ${peertube-download:location} ./
# peertube yarn install --production --pure-lockfile" echo $${directory:versions}
# cp peertube-latest/config/default.yaml config/default.yaml environment =
# cp peertube-latest/config/production.yaml.example config/production.yaml PATH=%(PATH)s
# cp /var/www/peertube/peertube-latest/support/nginx/peertube /etc/nginx/sites-available/peertube
# sed -i 's/${WEBSERVER_HOST}/[peertube-domain]/g' /etc/nginx/sites-available/peertube
# sed -i 's/${PEERTUBE_HOST}/127.0.0.1:9000/g' /etc/nginx/sites-available/peertube
[directory] [directory]
recipe = slapos.cookbook:mkdirectory recipe = slapos.cookbook:mkdirectory
srv = $${buildout:directory}/srv srv = $${buildout:directory}/srv
var = $${:srv}/var peertube_directory = $${:srv}/var/www/peertube
www = $${:var}/www config = $${:srv}/var/www/peertube/config
peertube_directory = ${:www}/peertube storage = $${:srv}/var/www/peertube/storage
config = $${:peertube_directory}/config versions = $${:srv}/var/www/peertube/versions
storage = $${:peertube_directory}/storage
versions = $${:peertube_directory}/versions
[postgresql-password] [postgresql-password]
recipe = slapos.cookbook:generate.password recipe = slapos.cookbook:generate.password
......
...@@ -29,6 +29,7 @@ extends = ...@@ -29,6 +29,7 @@ extends =
../../component/redis/buildout.cfg ../../component/redis/buildout.cfg
../../component/git/buildout.cfg ../../component/git/buildout.cfg
../../component/wget/buildout.cfg ../../component/wget/buildout.cfg
buildout.hash.cfg
parts = parts =
# Call installation of slapos.cookbook egg defined in stack/slapos.cfg (needed # Call installation of slapos.cookbook egg defined in stack/slapos.cfg (needed
...@@ -49,6 +50,7 @@ parts = ...@@ -49,6 +50,7 @@ parts =
wget wget
# peetube sections # peetube sections
peertube-download peertube-download
instance-profile
# postgresql-setup # postgresql-setup
[nodejs] [nodejs]
...@@ -61,9 +63,6 @@ url = https://github.com/Chocobozzz/PeerTube/releases/download/v4.2.2/peertube-v ...@@ -61,9 +63,6 @@ url = https://github.com/Chocobozzz/PeerTube/releases/download/v4.2.2/peertube-v
# md5sum = # md5sum =
[instance-profile] [instance-profile]
<= jinja-template recipe = slapos.recipe.template
rendered = ${buildout:directory}/instance.cfg url = ${:_profile_base_location_}/${:filename}
extensions = jinja2.ext.do output = ${buildout:directory}/instance.cfg
context =
section buildout buildout
raw template_monitor ${monitor2-template:rendered}
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