Closed 2monkey closed 6 years ago
I don't have any knowledge about docker itself, but adding ShopApi should be pretty straightforward, as it shouldn't be required any additional config. Once you will create a project follow the installation instruction
yeah - but composer cant install the plugin.
Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "ShopApiPlugin" from namespace "Sylius\ShopApiPlugin".
this is my install in the project folder
COMPOSER_MEMORY_LIMIT=-1 composer require "sylius/shop-api-plugin":"^1.0.0-beta.20"
PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 268435464 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleSet.php on line 84
Ok got it!
This is my Dockerfile:
Modify UID of www-data into UID of local user
RUN usermod -u ${AS_UID} www-data
Operate as www-data in SYLIUS_DIR per default
WORKDIR ${BASE_DIR}
Create Sylius project
nginx configuration
COPY nginx/nginx.conf /etc/nginx/nginx.conf
Install yarn
Yarn assets