alexcheng1982 / docker-magento2

Docker image for Magento Open Source 2
MIT License
381 stars 258 forks source link

How to access code in IDE and sample data does not work magento2.3? #38

Open raoraafe opened 5 years ago

raoraafe commented 5 years ago

no guidelines on how to access code for noobs. sample data installed but is not populating and reflecting on m2.

ikslavok commented 5 years ago

To access code add link to place in your pc by adding this to volume in web service.

volumes:
      - ./folder_on_host:/var/www/html/folder_you_wana_reach_in_guest

Add as many links as you need. Also ./ means directory where your docker-compose.yml file is. If u want data to be persistant (stay there after restart), ad to those volumes also: - magento-data:/var/www/html But it will have some permission problems after restart. Still figuring that out. I guess its to do with Magento.

For sample data, just delete everything and try again. For some reason it sometimes work and sometimes doesn't.

alabius commented 5 years ago

I have - magento-data:/var/www/htmlmounted but the directory is empty.

I it give error before running docker exec it {container} install-magento The error is the directory /var/www/html/bin/magento: No such file or directory does not exist

If I don't have the volume, i cant do any modifications to my child theme or parent theme.