-
Notifications
You must be signed in to change notification settings - Fork 308
Description
Describe the bug
Current docker setup is tailored for core development and is not working correctly with project specific theme development.
To Reproduce
Create custom theme through cli command, e.g. MyCompany/pwa
, and update configuration files (.env, webpack)
-
the first issue is deployment procedure in
deploy/start.sh
. Function contains code that redeploys base theme from scratch every time, it fails if files are present and don't delete them, but it still contains hard coded values and is executed on every start up. -
the second issue is that theme path is hard coded in multiple places and is not prone to be changed easily.
deploy/local/env
deploy/start.sh
docker-compose.frontend.yml
-
after adjusting config and docker files to work with project specific theme, webpack scss compilation fails,
src/app/design/frontend/PROJECT/pwa/src/config/webpack.development.config.js
projectRoot has to changed with fallbackRoot. -
after importing sample data, migrations fail:
app_1 | Module 'ScandiPWA_Installer':
app_1 | Module 'Scandiweb_Core':
app_1 | Module 'ScandiPWA_Migrations':
app_1 | Caught exception: The stock item was unable to be saved. Please try again.
app_1 | Rolled back transaction has not been completed correctly.
Expected behavior
docker containers should be able to handle project specific theme development.