DEV Community

Cover image for Deploy Shopify Apps to Northflank

Deploy Shopify Apps to Northflank

If you develop custom shopify apps and search for a option to host your apps for your different environments. I can only recommend having a look at northflank.com.

With Heroku canceling all free plans, Northflank comes with a great developer experience and allows to start free and scale up as your app grows.

At the Northflank blog, you can find some features they provide (more here https://northflank.com/blog/hosting-a-shopify-application-on-northflank).

The blog does provide the features, but unfortunately it's not a tutorial. As lot of posts regarding shopify are not up-to-date, i document my steps here :)

Setup

Fresh Shopfiy app with NodeJS, created by the shopify-cli. Shopify does create an app for you within Shopify and does update the client-id + secret when you start the app.

If you want to have different app-environments, best just create another app in Shopify partner portal for using it within Northflank.

You can open a free account at Northflank, this provides you with all resources for starting your app.

Deploy to Northflank

Luckily Shopify does create already an Dockerfile for you, in Northflank go and import your Github Repo with your Shopify app, within the setup process you can select the Docker setup, Northflank setups and detect the necessary configs automatically. You only need to check that your fresh container is public available!

The standard Shopify app does some black magic in the background and uses some env-variables out of the box. You have to setup Northflank correctly here.

1. Container build arguments

Image description

2. Container enviroment

Image description

3. Shopify app setup url

Image description

And you are good to go with your running staging setup!

If you have any questions, just drop me a msg

cheers

Top comments (0)