Last active
February 15, 2017 06:43
-
-
Save nimeshpahadi/7f2b0c36dd3db5dd2be2c4d40d3e3c30 to your computer and use it in GitHub Desktop.
permission setup after docker-compose build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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