Нужно локально развернуть symphony проект на Windows.
Нужно рабоnать через teamviewer
Нужно выполнить сегодня.
Сейчас есть ошибка.
[Symfony\Component\Process\Exception\ProcessTimedOutException]
README.md
## Pre-installation
Your system must have the following packages installed:
| Package | Version |
|---------------|------------------|
| PHP | \>= 7.2 |
| MySQL | \>= 5.7 |
| NodeJS | \>= 10.0 |
| NPM | \>= 6.9 |
| Elasticsearch | \>= 5.0 & < 7.0 |
## Configuration
To set-up your Database/SMTP/Payment Gateways credentials you need first to run the following command:
```bash
cp .env .env.local
```
And edit **only** the `.env.local` file.
## Installation
### Production environment
*This config is still WIP*
#### 1. Install
**a)** First time
```bash
composer install
composer setup:prod
```
**b)** Update
```bash
composer update:prod
```
#### 2. Setup CRON jobs
Please read documentation for each command to find out suitable parameters to be used.
| Command | Description |
|-------------------------------------------------------|------------------------------------------------------------------------------------------|
| `php bin/console sylius-mvm:switch-listings-types` | Changes types of listings taking into account their campaign times (ie campaign is over) |
| `php bin/console sylius-mvm:publish-listings` | Publishes listings that are scheduled to be published in the future |
| `php bin/console sylius-mvm:clear-stale-carts` | Clears the carts that don't have recent updates. |
| `php bin/console app:event-stream:clean` | Clears stale carts also from event stream |
| `php bin/console app:delete-unused-images` | Deletes images that are not used by any records in the database |
| `php bin/console liip:imagine:cache:remove` | Clears image cache after unused images are deleted from the file system |
#### 3. Install & build assets
```
yarn install
yarn build
```
#### Deployment
The CircleCi `production` workflow aims to provide automated deployment abilities.
It starts running automatically for newly pushed repository tagged commit,
and gives ability to approve (initiate) deployment to production servers
(Tallinndolls, Pre-o-Porter and XCharisma separately) after build step passed successfully.
For more info check: `.circleci/config.yml`:
* `deploy_to_td` job
* `deploy_to_pop` job
* `deploy_to_xc` job
* `production` workflow
### Development environment
#### 1. Setup
**1.1** Prepare docker-compose (if used)
```bash
cp docker-compose.yml.dist docker-compose.yml
```
Edit docker-compose.yml - remove unused containers i.e `nginx`, `php`, `nodejs`.
Then
```bash
docker-compose up -d # note you may need to run `docker-compose up -d` again (known `mysql` container issue), when running container first time
```
**1.2** Install php dependencies
```bash
composer install
composer setup:dev-minimal # minal version of `setup:dev` - and takes less time
```
**1.3** Run the app
```bash
php bin/console server:start