Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: develpe an app using php template,"couldnt find the store with domain..."

Solved

develpe an app using php template,"couldnt find the store with domain..."

Webstollen
Shopify Partner
7 1 0
i downloaded the repo here https://github.com/Shopify/shopify-app-template-php and followed the read.md(

php artisan key:generate
php artisan migrate
cd ..
yarn dev
) but got errorr "Couldn't find the store with domain xxx". but i can click on the error message link to go to my store.



i think it's due to my config, i cant  find anything about configuring env and app.toml.



web/.env(idk how to find the APP_KEY so just left it empty)

APP_NAME=""(shopify website wont let me write anything here)
APP_ENV=production
APP_KEY=
APP_DEBUG=false

LOG_CHANNEL=stack
LOG_LEVEL=debug

DB_CONNECTION=sqlite
# The path to the database file should be absolute, make sure to update it!
DB_DATABASE="myProjectPath/web/storage/db.sqlite"
DB_FOREIGN_KEYS=true
 shopify.app.toml in root directory:

i just chnaged the name ,handle and application_url

client_id =
name = "yajie-local-app"
handle = "yajie-local-app"
application_url = "xxx.myshopify.com"
embedded = true

[build]
automatically_update_urls_on_dev = true
dev_store_url = "https://xxx.myshopify.com"
include_config_on_deploy = true

[access_scopes]
scopes = "write_products"

[auth]
redirect_urls = [
]

[webhooks]
api_version = "2024-07"

[pos]
embedded = false
Accepted Solution (1)

Webstollen
Shopify Partner
7 1 0

This is an accepted solution.

i deleted everything in shopify.app.toml and added API_KEY and API_SECRET_KEY in .env. 

View solution in original post

Replies 3 (3)

DeepVyas
Shopify Partner
771 10 8

Check here:  https://community.shopify.com/c/technical-q-a/how-to-resolve-couldn-t-find-the-store-error-when-dock...

 

Shopify Developer | Ⓢ : deepvyas71 | ✉ : deepvyas71@gmail.com
Webstollen
Shopify Partner
7 1 0

it didnt help.

Webstollen
Shopify Partner
7 1 0

This is an accepted solution.

i deleted everything in shopify.app.toml and added API_KEY and API_SECRET_KEY in .env.