Shopify / shopify-app-template-php

263 stars 85 forks source link

unable to get depolyed app with apache to wrok #488

Open johnGates10 opened 7 months ago

johnGates10 commented 7 months ago

Issue summary

Hello, my app works fine in dev environment, I deployed it to my custom vps with apache server. the react front works fine but the backend api calls won't work

Expected behavior

the api calls should work

Actual behavior

the api calls won't work I get this error : net::ERR_TOO_MANY_REDIRECTS https://xxxxxxx.com/api/products/count/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/

Steps to reproduce the problem

npm init @shopify/app@latest -- --template php cd web composer install cp .env.example .env touch storage/db.sqlite php artisan migrate php artisan key:generate cd .. npm run build --api-key=xxxxxxxxxxxxxxxxxxxx copy the the app folder to web server configure apache : DocumentRoot /var/www//web/public ErrorLog ... CustomLog .. <Directory "/var/www/"> Options Indexes FollowSymLinks AllowOverride All Require all granted restart apache test app

Reduced test case


Checklist

WildernessStars commented 1 month ago

hello, have you figured it out?