Skip to content

Latest commit

 

History

History
83 lines (60 loc) · 1.74 KB

README.md

File metadata and controls

83 lines (60 loc) · 1.74 KB

Collabus

Website for Collabus project
www.collabus.fr

Deployment

  1. Add .env file in backend/ folder. See backend environment file documentation.
  2. Add .env file in project root folder and add the following keys :
COLLABUS_BACKEND_PORT=8000 # port example
COLLABUS_FRONTEND_PORT=4200 # port example
EXECUTION_ENVIRONMENT=production # staging or production
  1. Start containers ./start.prod.sh

Stop containers ./stop.prod.sh

NGINX example configuration

server_tokens off;

server {
    listen 80;
    listen [::]:80;

    server_name backend.collabus.fr;

    location / {
        proxy_pass http://localhost:8000;

        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        proxy_redirect off;
        proxy_buffering off;
        proxy_store off;

        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $http_connection;
    }
}

server {
    listen 80;
    listen [::]:80;

    server_name www.collabus.fr;

    location / {
        proxy_pass http://localhost:4200;
    }
}

Commit

<type>[optional scope][optional breaking change '!']: <description>

Example :

  • feat(frontend): commit description
  • fix(backend)!: commit description

Types :

  • chore(): routine job
  • build(): system build and dependencies
  • ci(): integration or configuration scripts and files
  • feat(): introduces a new feature
  • fix(): patches a bug
  • perf(): performance improvement
  • refactor(): rewrite code
  • style(): code formatting
  • docs(): add or update docs
  • test(): add or update tests