Replies: 1 comment
-
If your magento folder is it's own repo "submodule" then its just easier to move the code under src and move all the other files on the same level of your magento folder somewhere else. If not, then one way to do it is to update default.conf to point to Now mount the default.conf to the container by adding This is not tested by the way, I had to set up sub-directories for multiple stores and this was the approach I took. services:
app:
image: markoshust/magento-nginx:1.24-0
ports:
- "80:8000"
- "443:8443"
volumes: &appvolumes
- ~/.composer:/var/www/.composer:cached
- ~/.ssh/id_rsa:/var/www/.ssh/id_rsa:cached
- ~/.ssh/known_hosts:/var/www/.ssh/known_hosts:cached
- ./images/nginx/conf/default.conf:/etc/nginx/conf.d/default.conf
- appdata:/var/www/html
- sockdata:/sock
- ssldata:/etc/nginx/certs |
Beta Was this translation helpful? Give feedback.
-
How do I redirect the path of the
src
, since the repository of a project I am downloading is in amagento
directory? When I rungit clone path-repo src
, the directory ends up assrc/magento
, where the modules are located insrc/magento/app/code/[MODULES]
. I need help, please.Inside src
Steps To Reproduce
bin/composer install
Composer could not find a composer.json file in /var/www/html
To initialize a project, please create a composer.json file. See https://getcomposer.org/basic-usage
Beta Was this translation helpful? Give feedback.
All reactions