Fixes #205: Fix Janitor configuration;
This commit is contained in:
parent
15dbc134bd
commit
a585af352c
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
cd client || exit -1
|
cd client || exit -1
|
||||||
|
|
||||||
npm run ng -- server --hmr --host localhost --port 3000
|
npm run ng -- server --hmr --host 0.0.0.0 --port 3000
|
||||||
|
|
|
@ -15,10 +15,19 @@ WORKDIR /home/user/PeerTube
|
||||||
# Configure Cloud9 IDE to use PeerTube's source directory as workspace (-w).
|
# Configure Cloud9 IDE to use PeerTube's source directory as workspace (-w).
|
||||||
RUN sudo sed -i "s/-w \/home\/user/-w \/home\/user\/PeerTube/" /etc/supervisord.conf
|
RUN sudo sed -i "s/-w \/home\/user/-w \/home\/user\/PeerTube/" /etc/supervisord.conf
|
||||||
|
|
||||||
|
# Install dependencies.
|
||||||
|
RUN yarn install --pure-lockfile
|
||||||
|
|
||||||
# Configure Janitor for PeerTube.
|
# Configure Janitor for PeerTube.
|
||||||
ADD janitor.json /home/user/
|
ADD janitor.json /home/user/
|
||||||
RUN sudo chown user:user /home/user/janitor.json
|
RUN sudo chown user:user /home/user/janitor.json
|
||||||
|
|
||||||
# Configure and build PeerTube.
|
# Configure and build PeerTube.
|
||||||
RUN yarn install \
|
ADD create_user.sql /tmp/
|
||||||
&& npm run build
|
RUN sudo service postgresql start && \
|
||||||
|
sudo -u postgres psql --file=/tmp/create_user.sql
|
||||||
|
|
||||||
|
ADD supervisord.conf /tmp/supervisord-extra.conf
|
||||||
|
RUN cat /tmp/supervisord-extra.conf | sudo tee -a /etc/supervisord.conf
|
||||||
|
|
||||||
|
EXPOSE 3000 9000
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
create database peertube_dev;
|
||||||
|
create user peertube password 'peertube';
|
||||||
|
grant all privileges on database peertube_dev to peertube;
|
|
@ -10,6 +10,11 @@
|
||||||
"label": "SSH",
|
"label": "SSH",
|
||||||
"proxy": "none"
|
"proxy": "none"
|
||||||
},
|
},
|
||||||
|
"3000": {
|
||||||
|
"label": "PeerTube web app",
|
||||||
|
"proxy": "https",
|
||||||
|
"preview": true
|
||||||
|
},
|
||||||
"8088": {
|
"8088": {
|
||||||
"label": "VNC",
|
"label": "VNC",
|
||||||
"proxy": "https"
|
"proxy": "https"
|
||||||
|
@ -19,13 +24,12 @@
|
||||||
"proxy": "https"
|
"proxy": "https"
|
||||||
},
|
},
|
||||||
"9000": {
|
"9000": {
|
||||||
"label": "PeerTube",
|
"label": "PeerTube API",
|
||||||
"proxy": "https",
|
"proxy": "https"
|
||||||
"preview": true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"Start PeerTube": "npm start",
|
"Start PeerTube": "npm run dev",
|
||||||
"Build PeerTube": "npm run build",
|
"Build PeerTube": "npm run build",
|
||||||
"Run tests": "npm test",
|
"Run tests": "npm test",
|
||||||
"Update source code": "git pull --rebase origin",
|
"Update source code": "git pull --rebase origin",
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
[program:postgresql]
|
||||||
|
user = user
|
||||||
|
command = sudo -u postgres /usr/lib/postgresql/9.5/bin/postgres -D /var/lib/postgresql/9.5/main -c config_file=/etc/postgresql/9.5/main/postgresql.conf
|
Loading…
Reference in New Issue