Skip to content

Instantly share code, notes, and snippets.

@nimeshpahadi
Last active February 15, 2017 06:43
Show Gist options
  • Save nimeshpahadi/7f2b0c36dd3db5dd2be2c4d40d3e3c30 to your computer and use it in GitHub Desktop.
Save nimeshpahadi/7f2b0c36dd3db5dd2be2c4d40d3e3c30 to your computer and use it in GitHub Desktop.
permission setup after docker-compose build
# path of sylius project in .env file symfony_app_path
docker-compose build
docker-compose up -d
docker network inspect bridge | grep Gateway
sudo echo "171.17.0.1 rudraksha.dev" >> /etc/hosts
cat /etc/hosts
# Update app/config/parameters.yml
parameters:
database_host: db
database_password: root
# comment line 29 & 30 (header........) in app_dev.php file
docker-compose exec php php /var/www/symfony/bin/console
docker-compose exec php php /var/www/symfony/bin/console sylius:install:check-requirements
docker-compose exec php php /var/www/symfony/bin/console sylius:install:databases
docker exec -it php_container_id(727ffce191d7) chown -R www-data:www-data /var/www/symfony
# MySQL commands
docker-compose exec db mysql -uroot -p"root"
# COMPOSER UPDATE
docker-compose exec php composer update /var/www/symfony
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment