Troubleshooting Theme Extension Deployment Issue on Shopify App Hosted via VPS

Topic summary

Issue: A Shopify app hosted on a VPS runs fine under PM2, but theme extension updates are not appearing after changes.

Details:

  • The developer attempted to deploy the theme extension using the deploy command (e.g., npm run deploy) to push changes.
  • The command returned a Partner Dashboard login URL, but opening it redirected to a local IP address, blocking proper authentication/deployment.
  • Environment: Shopify CLI/version referenced as 3.59.0.

Status:

  • No fix or workaround identified in the thread.

Open questions:

  • Why the deployment/auth URL redirects to a local IP when executed on the VPS.
  • How to correctly authenticate and deploy theme extension changes from this setup so updates reflect in the store.
Summarized with AI on December 29. AI used: gpt-5.

I’m currently working on a Shopify app and have hosted it on a VPS. I successfully built and ran it using PM2, and everything was working perfectly. However, my app includes a theme extension, and after updating it, the changes aren’t reflecting.

I noticed a command ‘npm run deploy’ to push theme extension changes. When I tried running it, its gave me a login partner dashboard URL, but upon opening it, it redirected to a local IP address. I’m using Shopify version 3.59.0.

Can anyone help me understand what might be causing this issue?