Ubuntu 14.04 or Ubuntu 16.04 with NGINX, MySQL and Node
Follow Step 1, Step 2 and Step 3 from https://www.digitalocean.com/community/tutorials/how-to-deploy-a-symfony-application-to-production-on-ubuntu-14-04
(You may need to create these folders if they don't exist already)
cd /var/www
sudo setfacl -R -m u:www-data:rwX kodeklubben/app/cache kodeklubben/app/logs kodeklubben/web/img/club
sudo setfacl -dR -m u:www-data:rwX kodeklubben/app/cache kodeklubben/app/logs kodeklubben/web/img/club
1. Make sure a new (empty) database has been created and is configured correctly in app/config/parameters.yml
export SYMFONY_ENV=prod
cd kodeklubben
SYMFONY_ENV=prod composer install --no-dev --optimize-autoloader
php app/console doctrine:schema:create --env=prod
php app/console cache:clear --env=prod --no-debug
php app/console doctrine:fixtures:load --env=prod
php app/console assets:install --symlink web --env=prod --no-debug
php app/console assetic:dump --env=prod --no-debug
npm install
gulp build:prod
Install PHP-FPM
sudo apt-get install php5-fpm
Follow Step 6 from https://www.digitalocean.com/community/tutorials/how-to-deploy-a-symfony-application-to-production-on-ubuntu-14-04#step-6-—-setting-up-the-web-server
The website should now be running
See http://symfony.com/doc/current/deployment/tools.html
for more info