File tree Expand file tree Collapse file tree 3 files changed +26
-2
lines changed
Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,6 @@ RUN export PATH=$PATH:/apache-solr-3.6.2/example/solr/conf/
5454
5555
5656EXPOSE 8000
57- COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
57+ COPY docker/ supervisord.conf /etc/supervisor/conf.d/supervisord.conf
5858
59- CMD ["bash" , "start.sh" ]
59+ CMD ["bash" , "docker/ start.sh" ]
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ /etc/init.d/postgresql start && \
4+ ./manage.py migrate --noinput && \
5+ ./manage.py datamigrate && \
6+ ./manage.py collectstatic --noinput
7+
8+ /etc/init.d/postgresql stop
9+
10+ /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
Original file line number Diff line number Diff line change 1+ [supervisord]
2+ nodaemon=true
3+
4+ [program:fum]
5+ command: ./manage.py runserver --nostatic 0.0.0.0:8000
6+ environment=REMOTE_USER="emkos_test01"
7+
8+ [program:postgres]
9+ command: /etc/init.d/postgresql start
10+
11+ [program:solr]
12+ command: java -jar start.jar
13+ directory: /opt/app/apache-solr-3.6.2/example/
14+ environment=PATH=$PATH:/opt/app/apache-solr-3.6.2/example/solr/conf/
You can’t perform that action at this time.
0 commit comments