Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit 0956c46

Browse files
committed
Merge branch 'develop' of https://github.com/DivanteLtd/vue-storefront-api into develop
# Conflicts: # ecosystem.json
2 parents fb3dc07 + 1c4e9ae commit 0956c46

File tree

3 files changed

+25
-19
lines changed

3 files changed

+25
-19
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,19 @@ As a result, all necessary services will be launched:
4444
Product catalog is imported using [elasticdump](https://www.npmjs.com/package/elasticdump), which is installed automatically via project dependency. The default ElasticSearch index name is: `vue_storefront_catalog`
4545

4646
- (A) `yarn restore`
47-
- (B) `docker exec -it vuestorefrontapi_app_1 yarn restore`
47+
- (B) `docker exec -it vue-storefront-api_app_1 yarn restore`
4848

4949
Then, to update the structures in the database to the latest version (data migrations), do the following:
5050

51-
- (A) `docker exec -it vuestorefrontapi_app_1 yarn migrate`
52-
- (B) `yarn migrate`
51+
- (A) `yarn migrate`
52+
- (B) `docker exec -it vue-storefront-api_app_1 yarn migrate`
5353

5454
By default, the application server is started in development mode. It means that code auto reload is enabled along with ESLint, babel support.
5555

5656
It restores JSON documents stored in `./var/catalog.json`. The opposite command - used to generate `catalog.json` file from running ElasticSearch cluster:
5757

5858
- (A) `yarn dump`
59-
- (B) `docker exec -it vuestorefrontapi_app_1 yarn dump`
59+
- (B) `docker exec -it vue-storefront-api_app_1 yarn dump`
6060

6161
**Access ElasticSearch data with Kibana**
6262

@@ -71,7 +71,7 @@ Catalog API calls are compliant with ElasticSearch (it works like a filtering pr
7171

7272
Elastic search endpoint: `http://localhost:8080/api/catalog/search/<INDEX_NAME>/`. You can run the following command to check if everything is up and runing (it assumes `vue_storefront_catalog` as default index name):
7373

74-
`curl -i http://elastic:changeme@localhost:8080/api/search/vue_storefront_catalog/_search?query=*`
74+
`curl -i http://elastic:changeme@localhost:8080/api/catalog/vue_storefront_catalog/_search`
7575

7676
## Data formats
7777
This backend is using ElasticSearch data formats popularized by [ElasticSuite for Magento2 by Smile.fr](https://github.com/Smile-SA/elasticsuite).
@@ -89,7 +89,7 @@ To do this, define the `package.json` with your dependencies in your custom modu
8989
- `src/api/extensions/{your-custom-extension}/package.json`
9090
- `src/platforms/{your-custom-platform}/package.json`
9191

92-
Executing `docker exec -it vuestorefrontapi_app_1 yarn install` will also download your custom modules dependencies.
92+
Executing `docker exec -it vue-storefront-api_app_1 yarn install` will also download your custom modules dependencies.
9393

9494
NOTE: `npm` users will still have to install the dependencies individually in their modules.
9595

docker/vue-storefront-api/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ ENV VS_ENV prod
44

55
WORKDIR /var/www
66

7-
RUN apk add --no-cache imagemagick curl
7+
RUN apk add --no-cache imagemagick
8+
RUN apk add --no-cache curl
89

910
COPY package.json ./
1011

ecosystem.json

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
{
2-
"apps": [
3-
{
4-
"name": "api",
5-
"interpreter": "babel-node",
6-
"script": "./dist/index.js",
7-
"log_date_format": "YYYY-MM-DD HH:mm:ss",
8-
"ignore_watch": [
9-
"node_modules"
10-
]
11-
}
12-
]
13-
}
2+
"apps": [
3+
{
4+
"name": "api",
5+
"interpreter": "babel-node",
6+
"script": "./dist/index.js",
7+
"log_date_format": "YYYY-MM-DD HH:mm:ss",
8+
"ignore_watch": ["node_modules"]
9+
},
10+
{
11+
"name": "o2m",
12+
"script": "./dist/worker/order_to_magento2.js",
13+
"args": "start",
14+
"log_date_format": "YYYY-MM-DD HH:mm:ss",
15+
"ignore_watch": ["node_modules"]
16+
}
17+
]
18+
}

0 commit comments

Comments
 (0)