Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
servers:nginx:friendica [2020/04/24 12:10] – Ubuntu 20.04 Sean Rhone | servers:nginx:friendica [2022/08/16 15:28] – Sean Rhone |
---|
===== Prerequisites ===== | ===== Prerequisites ===== |
| |
* [[distros:ubuntu_server|Ubuntu Server]] ((Last tested on 20.04)) | * [[distros:fedora_server|Fedora Server]] |
* [[servers:mariadb|MariaDB]] | * [[servers:mariadb|MariaDB]] |
* [[servers:nginx_php_php-fpm|nginx + PHP + PHP-FPM]] | * [[servers:nginx_php_php-fpm|nginx + PHP + PHP-FPM]] |
====== Download Source ====== | ====== Download Source ====== |
| |
* :!: ''develop'' branch was broken on 2019/06/28 | **** |
| |
sudo rm -Rf '/var/www/social' && sudo git clone --branch 'master' --depth '1' --recurse-submodules 'https://github.com/friendica/friendica.git' '/var/www/social' && sudo rm -Rf '/var/www/social/addon' && sudo git clone --branch 'master' --depth '1' --recurse-submodules 'https://github.com/friendica/friendica-addons.git' '/var/www/social/addon' && sudo chown -R 'www-data':'www-data' '/var/www/social' && sync | sudo git clone --branch 'develop' --depth '1' --recurse-submodules 'https://github.com/friendica/friendica.git' '/var/www/social' && sudo git clone --branch 'develop' --depth '1' --recurse-submodules 'https://github.com/friendica/friendica-addons.git' '/var/www/social/addon' && sudo chown -R 'nginx':'nginx' '/var/www/social' && sudo restorecon -F -I -R '/var/www/social' && sync |
| |
====== PHP Dependencies ====== | ====== PHP Dependencies ====== |
**** | **** |
| |
cd '/var/www/social' && sudo -u 'www-data' COMPOSER_CACHE_DIR='/dev/null' '/var/www/social/bin/composer.phar' install --no-dev && sync | cd '/var/www/social' && sudo -u 'nginx' COMPOSER_CACHE_DIR='/dev/null' '/var/www/social/bin/composer.phar' install --no-dev && sync |
| |
====== Database ====== | ====== Database ====== |
WorkingDirectory=/var/www/social | WorkingDirectory=/var/www/social |
Environment="COMPOSER_CACHE_DIR=/dev/null" | Environment="COMPOSER_CACHE_DIR=/dev/null" |
ExecStart='/usr/bin/git' -C '/var/www/social' pull origin 'master' | ExecStart='/usr/bin/git' -C '/var/www/social' pull origin 'develop' |
ExecStart='/usr/bin/git' -C '/var/www/social/addon' pull origin 'master' | ExecStart='/usr/bin/git' -C '/var/www/social/addon' pull origin 'develop' |
ExecStart='/var/www/social/bin/composer.phar' install --no-dev | ExecStart='/var/www/social/bin/composer.phar' install --no-dev |
ExecStartPost='/bin/sync'</code> | ExecStartPost='/bin/sync'</code> |