All operations must be done in project's root directory. Web application always use HTTPS protocol.
First of all define global environment variables in .env file. Create .env file from template .env.example.
cp -a ./.env.example ./.env
nano ./.env
Script, which updates project permissions, can be configured.
nano ./conf/appperm/appperm.yml
Use make
tool to execute actions. Run make
without parameters
to display the list of all available commands.
make
Use install
action for make
to deploy the project.
make install
- /app: site directory.
- /bin: executable files.
- /conf: software settings.
- /db: database's backups.
It is recommend to store attributes of files/folders while moving application to another destination (without VCS).
tar -czv --preserve-permissions --same-owner -f my-site.tar.gz my-site.com/
or
rsync -av [email protected]:/var/www/my-site.com /home/user/backup/