fixing installation
This commit is contained in:
@@ -24,10 +24,11 @@ add to your /etc/hosts :
|
|||||||
configure your vhosts to add a reverse proxy that will redirect the domain dev.figureslibres.com to our container
|
configure your vhosts to add a reverse proxy that will redirect the domain dev.figureslibres.com to our container
|
||||||
|
|
||||||
### nginx
|
### nginx
|
||||||
|
edit ```/etc/nginx/sites-available/dev.figureslibres.cc.conf``` with :
|
||||||
```nginx
|
```nginx
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name dev.figureslibres.io;
|
server_name dev.figureslibres.cc;
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://127.0.0.1:8882;
|
proxy_pass http://127.0.0.1:8882;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
@@ -40,6 +41,11 @@ server {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
then activate the vhost
|
||||||
|
```sh
|
||||||
|
sudo ln -s /etc/nginx/sites-available/dev.figureslibres.cc.conf /etc/nginx/sites-enabled/
|
||||||
|
sudo systemctl restart nginx
|
||||||
|
```
|
||||||
|
|
||||||
### Apache
|
### Apache
|
||||||
```apache
|
```apache
|
||||||
@@ -51,14 +57,6 @@ server {
|
|||||||
</Virtualhost>
|
</Virtualhost>
|
||||||
```
|
```
|
||||||
|
|
||||||
## Updating code
|
|
||||||
|
|
||||||
```
|
|
||||||
git pull figli master
|
|
||||||
# then update all submodules
|
|
||||||
git submodule update --recursive --checkout
|
|
||||||
```
|
|
||||||
|
|
||||||
## Docker
|
## Docker
|
||||||
|
|
||||||
### start daemon
|
### start daemon
|
||||||
@@ -76,18 +74,51 @@ then each time you want to launch the app
|
|||||||
```
|
```
|
||||||
sudo docker-compose up -d
|
sudo docker-compose up -d
|
||||||
```
|
```
|
||||||
### login the php environement to user the grav cli tools
|
|
||||||
|
### check if containers are running
|
||||||
|
```
|
||||||
|
sudo docker-compose ps
|
||||||
|
```
|
||||||
|
|
||||||
|
### check the logs
|
||||||
|
```
|
||||||
|
sudo docker-compose logs -f
|
||||||
|
```
|
||||||
|
|
||||||
|
### install grav
|
||||||
```
|
```
|
||||||
sudo docker exec -it grav_figureslibres.cc_php_1 bash
|
sudo docker exec -it grav_figureslibres.cc_php_1 bash
|
||||||
|
|
||||||
|
```
|
||||||
|
### install grav
|
||||||
|
```
|
||||||
|
# log into the php container
|
||||||
|
sudo docker exec -it figureslibrescc_php_1 bash
|
||||||
|
# install grav using cli
|
||||||
|
bin/grav install
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### fixing permissions
|
### fixing permissions
|
||||||
from the ```grav_figureslibres.cc_php_1``` run the fixeperms.sh script
|
|
||||||
```
|
```
|
||||||
sudo docker exec -it grav_figureslibres.cc_php_1 bash
|
# log into the php container
|
||||||
chmod +x fixperms.sh
|
sudo docker exec -it figureslibrescc_php_1 bashchmod +x fixperms.sh
|
||||||
|
# run the script
|
||||||
./fixeperms.sh
|
./fixeperms.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Pages
|
||||||
|
fill the /user/pages with your contents or you'll get a 404 error
|
||||||
|
|
||||||
## Visualize
|
## Visualize
|
||||||
You can now visit http://dev.figureslibres.cc or simply http://localhost:8882 on your browser
|
You can now visit http://dev.figureslibres.cc or simply http://localhost:8882 on your browser
|
||||||
|
|
||||||
|
|
||||||
|
## Updating code
|
||||||
|
|
||||||
|
```
|
||||||
|
git pull figli master
|
||||||
|
# then update all submodules
|
||||||
|
git submodule update --recursive --checkout
|
||||||
|
```
|
||||||
|
|||||||
+1
-1
Submodule public_html updated: f8b2b21c51...376bac8ee5
Reference in New Issue
Block a user