Run a Shopify app on IT Tick
You built a Shopify app and want its web app live on your own domain, with HTTPS, on your IT Tick hosting.
Before you start
- Plans: every hosting plan. There is no count of apps: your apps, workers and PHP share your plan’s memory and CPU (5 GB: 1 GB memory and 1 vCPU; 20 GB: 2 GB and 1 vCPU; 50 GB: 4 GB and 2 vCPU). A sleeping app uses no memory.
- The app is created in the Shopify Dev Dashboard, and you have its Client ID and Client secret.
- The app is made from Shopify’s React Router template (the steps name its files and commands; another framework needs its own start and build commands).
- You know how to put code on the Apps page: run an app (upload folder) or deploy your app or site from GitHub or GitLab (git push).
shopify app deployonly sends the app’s settings and extensions to Shopify; your code goes up through Deploy on the Apps page. - If your app needs a background job or a Redis cache, see run a worker and make a Valkey database.
Steps
Keep the database out of the deploy folder, which each deploy replaces. In
prisma/schema.prismachangeurl = "file:dev.sqlite"tourl = env("DATABASE_URL"). You will pointDATABASE_URLat thedatafolder in your home (DATA_DIR), which stays across deploys (step 4). For MySQL or PostgreSQL instead, create a database under Databases (create a database) and setprovider = "mysql"orprovider = "postgresql". The template’sprisma/migrationsfolder is written for SQLite, so on MySQL or PostgreSQL the build’sprisma migrate deploystops (on PostgreSQL:type "datetime" does not exist). Before the first deploy, deleteprisma/migrationsand make one for your database:mkdir -p prisma/migrations/0_init, thennpx prisma migrate diff --from-empty --to-schema-datamodel prisma/schema.prisma --script > prisma/migrations/0_init/migration.sql.In
shopify.app.toml, setapplication_url = "https://your-domain"and, under[auth],redirect_urls = ["https://your-domain/auth/callback"]. Webhook URLs are paths on the same domain:/webhooks/app/uninstalled,/webhooks/customers/data_request,/webhooks/customers/redact,/webhooks/shop/redact. For a public app, uncomment the 3 privacy subscriptions in the toml and add a route for each; the template’s webhook check already answers a bad signature with 401.Open the IT Tick Panel, press Apps and, under Settings, set:
- Kind of app: Start command
- Version: node 24 (recommended) (the template needs 22.12 or newer; 22, 24 and 26 are offered)
- Start file or command:
node_modules/.bin/react-router-serve ./build/server/index.js - Build command:
npm run build && npx prisma generate && npx prisma migrate deploy - When idle: Stays on
Press Save settings. Use the server command itself, not
npm run startornpm run docker-start: the npm wrappers take about 175 MB more memory, anddocker-startruns the migration at every start (a 12.5 s cold start, while Shopify allows 5 s per webhook).
Under Add or change a variable, save each of these with Save variable:
SHOPIFY_APP_URL:https://your-domainSHOPIFY_API_KEY: the Client IDSHOPIFY_API_SECRET: the Client secret (hidden after you save it)SCOPES: the same scopes as inshopify.app.tomlNODE_ENV:productionDATABASE_URL:file:/home/<your-user>/data/shopify.sqlite,mysql://user:password@localhost:3306/namefor MySQL, orpostgresql://user:password@localhost:5432/namefor PostgreSQL
Don’t set
PORT: we set it (set environment variables). The Build command sees these variables too, so the migration runs during the deploy.
Upload your code (or push it) and press Deploy. When State shows On, open
https://your-domain: the app answers. Shopify’s App Store review checks for 404 and 500 answers; in our test the template’s pages answered with neither.
On your computer, in the app’s folder, run
shopify app deployto send the toml settings to Shopify. Install the app on a dev store to try it.To check webhooks, press App output and errors: each one shows as
Received ... webhook for <shop>. View log next to a deploy shows that deploy.
If it does not work
- A deploy failed at the migration: the last good deploy stays live. Open View log, fix the schema or
DATABASE_URLand press Deploy again. - Your data is gone after a deploy: the database is still at
prisma/dev.sqlitein the deploy folder. Do step 1 and setDATABASE_URL(step 4). - Webhooks are slow or Shopify reports timeouts: the app sleeps when idle and takes a few seconds to wake. Set When idle to Stays on: with it, webhooks answered in 15-60 ms in our test, and a fresh start took about 2 s.
- The panel refuses Stays on with “Your plan’s memory … is in use”: your apps, workers and PHP already use your plan’s memory. The template uses about 110-120 MB. Stop something you don’t need, or move to a larger plan.
- The app does not start on Node.js 22: the template needs 22.12 or newer. Choose node 24 (recommended) under Version.
Related
Thanks for telling us.
Still stuck? A person will help.
Standard support comes with every plan. Premium is an add-on.
