Skip to content

Commit

Permalink
fix issus #59 #61 #62
Browse files Browse the repository at this point in the history
  • Loading branch information
HamoudaAmine committed Jul 23, 2019
1 parent 758211b commit 95d45d6
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 13 deletions.
18 changes: 10 additions & 8 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Ces opérations doivent être faites avec l'utilisateur courant (autre que ``roo

::

cd /home/monuser
cd /home/<monuser>
wget https://github.com/PnX-SI/GeoPaysages/archive/X.Y.Z.zip

Expand All @@ -43,7 +43,7 @@ Dézipper l'archive :

unzip X.Y.Z.zip
Vous pouvez renommer le dossier qui contient l'application (dans un dossier ``/home/monuser/geopaysages/`` par exemple) :
Vous pouvez renommer le dossier qui contient l'application (dans un dossier ``/home/<monuser>/geopaysages/`` par exemple) :

::

Expand All @@ -64,7 +64,7 @@ Cela installera les logiciels nécessaires au fonctionnement de l'application

::

cd /home/monuser/geopaysages
cd /home/<monuser>/geopaysages
./install_env.sh


Expand Down Expand Up @@ -181,10 +181,11 @@ Configuration de Nginx
Copiez/collez-y ces lignes en renseignant les bons chemins et le bon port :
::
[program:geopaysages]
directory=/home/monuser/geopaysages/backend
command=/home/monuser/geopaysages/venv/bin/gunicorn app:app -b localhost:8000
directory=/home/<monuser>/geopaysages/backend
command=/home/<monuser>/geopaysages/venv/bin/gunicorn app:app -b localhost:8000
autostart=true
autorestart=true
user=<monuser>

stderr_logfile=/var/log/geopaysages/geopaysages.err.log
stdout_logfile=/var/log/geopaysages/geopaysages.out.log
Expand All @@ -203,24 +204,25 @@ Copiez/collez-y ces lignes en renseignant les bons chemins et le bon port :
server {
listen 80;
server_name localhost;
client_max_body_size 100M;
location / {
proxy_pass http://127.0.0.1:8000;
}
location /pictures {
alias /home/monuser/data/images/;
alias /home/<monuser>/data/images/;
}

location /app_admin {
alias /home/monuser/app_admin;
alias /home/<monuser>/app_admin;
try_files $uri$args $uri$args/ /app_admin/index.html;
}
}


:notes:

La limite de la taille des fichiers en upload est configurée à 100 Mo (client_max_body_size)
Modifier server_name pour ajouter le nom domaine associé à GeoPaysages :

::
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<ngx-spinner size="medium" type="ball-spin">
<p style="color: white" > Loading... </p>
</ngx-spinner>
<button *ngIf="!inputImage" class="image-btn" type="button" (click)="openPhotoModal(content)"><i class="icon-cross"></i></button>
<button *ngIf="inputImage" class="gallery" [style.background-image]="'url(' + inputImage.sm + ')'" type="button"
Expand Down
3 changes: 1 addition & 2 deletions front-backOffice/src/app/add-site/add-site.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<ngx-spinner size="medium" type="ball-spin">
<p style="color: white" > Loading... </p>
</ngx-spinner>
</ngx-spinner>
<app-header></app-header>
<div class="container-fluid">
<div class="row">
Expand Down
1 change: 0 additions & 1 deletion front-backOffice/src/app/add-site/add-site.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
cursor: not-allowed;
}


.photo-ref{
width: 120px;
font-size: 12px;
Expand Down
5 changes: 4 additions & 1 deletion front-backOffice/src/app/add-site/add-site.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,13 @@ export class AddSiteComponent implements OnInit, OnDestroy {
this.edit_btn = true;
this.setAlert(err.error.image);
}
if (err.status === 403) {
else if (err.status === 403) {
this.router.navigate(['']);
this.toastr.error('votre session est expirée', '', { positionClass: 'toast-bottom-right' });
}
else {
this.toastr.error("Une erreur est survenue sur le serveur.", '', { positionClass: 'toast-bottom-right' });
}
},
() => {
this.siteForm.disable();
Expand Down
3 changes: 3 additions & 0 deletions front-backOffice/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
@import './assets/css/icomoon.css';
@import './assets/css/custom_ngx_table.scss';

.black-overlay{
position: fixed !important
}
.custom-modal {
.modal-content {
min-width: 600px;
Expand Down

0 comments on commit 95d45d6

Please sign in to comment.