To run a local copy of Capella you'll need:
- Docker and docker-compose
- Node.js and npm/Yarn
Follow the deployment guide to run a local copy of Capella.
Use webpack to build scripts and styles for Capella. Firstly you heed to install Node.js dependencies.
npm ior
yarn installBuild bundles for development (fast rebuild). Run this command in separate terminal. Webpack will watch project files and rebuild bundles on changes.
npm run build:devor
yarn build:devBuild bundles for production (compress bundles). Run this command before committing changes.
npm run buildor
yarn buildRun this command before committing changes.
docker exec -i capella_php_1 composer csfixIf you need to watch Capella server's logs then connect to nginx container and open /var/log/nginx/capella_error.log
You can watch the end of logs file with the following command:
docker exec -i capella_nginx_1 tail -f /var/log/nginx/capella_error.logIf you need to disable cache then set param DISABLE_CACHE in .env file to True
...
### Cache server connection params
CACHE_HOST = memcached
CACHE_PORT = 11211
DISABLE_CACHE = True