Script to restart an container from an existing image
This commit is contained in:
parent
4f8dc08c6e
commit
09789cecbf
9
README
9
README
@ -2,7 +2,7 @@
|
||||
|
||||
L'instance Geonature-Citizen de Champs-Libres.
|
||||
|
||||
Installation développeur :
|
||||
# Installation développeur :
|
||||
|
||||
$ git submodule update --init --recursive
|
||||
$ docker-compose up -d
|
||||
@ -10,6 +10,11 @@ Installation développeur :
|
||||
|
||||
note: les credentials pour accéder au backend se trouvent dans /home/appuser/citizen/config
|
||||
|
||||
Documentation :
|
||||
# Remise en route du service
|
||||
|
||||
$ docker-compose up -d
|
||||
$ docker-compose exec citizen sh install/restart.sh
|
||||
|
||||
# Documentation :
|
||||
|
||||
$ make doc
|
||||
|
@ -6,3 +6,4 @@ services:
|
||||
volumes:
|
||||
- ./vendor/GeoNature-citizen/frontend:/home/appuser/citizen/frontend
|
||||
- ./vendor/GeoNature-citizen/backend:/home/appuser/citizen/backend
|
||||
- ./restart.sh:/home/appuser/citizen/install/restart.sh
|
||||
|
5
restart.sh
Normal file
5
restart.sh
Normal file
@ -0,0 +1,5 @@
|
||||
sudo service supervisor start && sudo supervisorctl stop all
|
||||
sudo apache2ctl restart
|
||||
sudo service postgresql start
|
||||
sudo supervisorctl reread
|
||||
sudo supervisorctl reload
|
Loading…
Reference in New Issue
Block a user