In order to successfully deploy the project, following actions are needed:
- Install additional packages (development)
- Deploy code (development)
- Additional project setup (development)
- Install php, relevant php modules and redis-cli, you will need them to run composer scripts on your machine:
sudo apt-get install -y php php-intl php-soap php-xdebug php-xml php-curl php-zip php-mbstring php-pgsql php-gmp redis-tools php-bcmath php-intl postgresql-client-common postgresql-client
- Note: Version of PHP must be
7.3
cd ${PROJECT_ROOT} && git pull
- Setup project environment config files
- From PROJECT ROOT FOLDER, run:
sudo chmod 777 api/public/ -R
sudo chown $USER:$USER api/public/ -R
Replace ${PROJECT_ROOT}
with the path to the project
- This project has two environment config files
- Setup
api/.env
fromapi/.env.dist
.`
- Overwrite contents of
.git/hooks/commit-msg
with contents fromapi/docs/git/commit-msg