Installation and update

The application is based on python and PostgreSql.

The installation is pretty simple and it is fully “dockerized”

docker build -t builder .
docker-compose -f docker-compose.dev.yml up
sudo docker exec -it agregg_web_1_68f40fbf6075 "bash"
./run-make.sh run

the application will be up and accessible via port 8000

If you want to install in your local machine be sure to install all required packages, that you can see in the “Dockerfile”. Then just create an empy db, create the .env file and run the command ./run-make.sh run

Deploy

On local folder move into master branch, then run the command ./build.sh In production server run the command ./release.sh.

Usage: ./release.sh branch=[“master”] [version=””] env=[“dev”] site=[]

Where:

  • version: is the specific tag
  • env: is the environment (if dev == production “touch reload” will be performed, if dev == lab “sudo service apache2 reload” will be performed ). The default id “dev”, so collected static will not be performed.
  • site: is the .env specific information. If it is not empy a symlink will be created with the following command: “ln -sfn agregg/[site].env .env”
  • branch: the branch name for release, the default is “master”