...
2. Place the package at Project Root Directory
...
3. Extract the package to Project Root Directory
Code Block |
---|
|
cd <project_root_directory>
tar -xf <package_name> |
...
4. Add Laminas Barcode package
Code Block |
---|
|
composer require laminas/laminas-barcode ^2.8 |
5. Configure deploy client app static at .magento.app.yaml
Check how many client app in your POS package
Code Block |
---|
|
$ ls app/code/Magestore/Webpos/build/apps/
pos |
As you can see here above there is only one app named pos
you need to add the code block below to the file .magento.app.yaml
Code Block |
---|
|
"/apps/pos":
root: "app/code/Magestore/Webpos/build/apps/pos"
allow: false
scripts: false
index:
- index.html
rules:
\.(html|css|js|svg|json|map|hbs|gif|jpe?g|png|tiff|wbmp|ico|jng|bmp|svgz|midi?|mp?ga|mp2|mp3|m4a|ra|weba|3gpp?|mp4|mpe?g|mpe|ogv|mov|webm|flv|mng|asx|asf|wmv|avi|ogx|swf|jar|ttf|eot|woff|otf)$:
allow: true
passthru: "/get.php"
"/apps/pos/static":
root: "app/code/Magestore/Webpos/build/apps/pos/static"
allow: true
scripts: false
passthru: "/front-static.php"
rules:
^/apps/pos/static\d+/(?<resource>.*)$:
passthru: "/static/$resource" |
6. Add changed file and push to remote
Code Block |
---|
git add app/code/Magestore .magento.app.yaml composer.json composer.lock
git commit -m "Init Magestore POS"
git push origin <branch-name> |
...
7. Waiting for deployment completed
8. Adjust Redis session configuration
Note: This is an optional configuration if you are using Redis for Magento Session.
...