Tajveez
Tajveez
AAlokai
Created by Tajveez on 6/7/2023 in #🙋|general-help
Deployment guide
nvm, graphql was breaking at Magento's end which was causing middleware to break. fixed that and its working perfectly. Thanks for help @rohrig 🙌 .
14 replies
AAlokai
Created by Tajveez on 6/7/2023 in #🙋|general-help
Deployment guide
@rohrig Do Magento and VSF need to be on same server? In ngnix error.log i see the following errors.
"GET /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1", upstream: "http://127.0.0.1:3000/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php"
"GET /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1", upstream: "http://127.0.0.1:3000/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php"
Also can you guide: VSF is starting middleware at 0.0.0.0:8181 and in .env we are setting following variables for middleware:
# Previously VSF_MIDDLEWARE_URL
API_BASE_URL=http://localhost:3000/api/
# Previously VSF_SSR_MIDDLEWARE_URL
API_SSR_BASE_URL=http://localhost:3000/api/
# Previously VSF_MIDDLEWARE_URL
API_BASE_URL=http://localhost:3000/api/
# Previously VSF_SSR_MIDDLEWARE_URL
API_SSR_BASE_URL=http://localhost:3000/api/
Does VSF automatically map to that or do we need to add reverse proxy for port 8181 ?
14 replies
AAlokai
Created by Tajveez on 6/7/2023 in #🙋|general-help
Deployment guide
ran yarn start:middleware command but it started middleware at 0.0.0.0:8181 when variables API_BASE_URL and API_SSR_BASE_URL set in .env file. i checked the code at middleware.js file:
const host = process.argv[2] ?? "0.0.0.0";
const port = process.argv[3] ?? 8181;
const host = process.argv[2] ?? "0.0.0.0";
const port = process.argv[3] ?? 8181;
guess its picking default values.
14 replies
AAlokai
Created by Tajveez on 6/7/2023 in #🙋|general-help
Deployment guide
thanks, will do.
14 replies
AAlokai
Created by Tajveez on 6/7/2023 in #🙋|general-help
Deployment guide
i don't think it starts the middleware. do i need to only run yarn start:middleware or both yarn start and yarn start:middleware?
14 replies
AAlokai
Created by Tajveez on 6/7/2023 in #🙋|general-help
Deployment guide
yes, project is there. and node, npm, yarn are installed. I am using ngnix so i have already mapped localhost:3000 in ngnix configuration. I have set Magento Url in .env file but when i run yarn build && yarn start I see VSF application but with message error occured. I checked network tab api/magento/route is throwing 502 error. I guess API is not running. Did i missed any step or am i doing something wrong?
14 replies
AAlokai
Created by Tajveez on 6/7/2023 in #🙋|general-help
Deployment guide
Thanks @rohrig , but this seems to be from DigitalOcean UI. i am doing this via ssh.
14 replies
AAlokai
Created by Tajveez on 6/5/2023 in #🙋|general-help
Getting error while installing Vue-storefront by using CLI
it worked!!! Thanks guys
20 replies
AAlokai
Created by Tajveez on 6/5/2023 in #🙋|general-help
Getting error while installing Vue-storefront by using CLI
let me check.
20 replies
AAlokai
Created by Tajveez on 6/5/2023 in #🙋|general-help
Getting error while installing Vue-storefront by using CLI
no opened with text editor. but same in cat command. from error text it seems the script is using rmdir command to delete file .env.example which fails because .env.example is a file not a directory.
20 replies
AAlokai
Created by Tajveez on 6/5/2023 in #🙋|general-help
Getting error while installing Vue-storefront by using CLI
yeah
20 replies
AAlokai
Created by Tajveez on 6/5/2023 in #🙋|general-help
Getting error while installing Vue-storefront by using CLI
Hi @skirianov , yes i am selecting no to install Magento locally. Following text is from CLI_logs.txt
v16.20.0

🙌 Node.js version is compatible
v16.20.0

🙌 Node.js version is compatible
20 replies
AAlokai
Created by Tajveez on 6/5/2023 in #🙋|general-help
Getting error while installing Vue-storefront by using CLI
yes i do. Docker version 20.10.21, build 20.10.21-0ubuntu1~22.04.3 docker-compose version 1.29.2, build unknown. I tried CLI with installing magento2 docker error as well but it gave permission error so i installed magento2 docker manually.
20 replies