Solved

how to deploy my custom app to my store?

skoryk
Tourist
6 1 2

I developed a custom app. Then I tried to deploy this app to our development store.
I succesfully deployed this app to heroku according to intruction "Hosting and deploying to Heroku" (a file heroku.md was genereted by CLI 3). I generated Merchant install link by UI shopify partners, but the app was not deployed to our store.
Can you help us to deploy our app?

Accepted Solution (1)

skoryk
Tourist
6 1 2

This is an accepted solution.

To solve this problem, simply remove the backslash in the HOST configuration in heroku

skoryk_0-1657798030334.png

 

View solution in original post

Replies 10 (10)

RonnieZie
Shopify Partner
5 0 0

Can you please post your logs from Heroku?

 heroku logs --tail --app APP_NAME

skoryk
Tourist
6 1 2

2022-06-30T08:57:56.493056+00:00 heroku[router]: at=info method=GET path="/api/auth?shop=splitoffpaystage.myshopify.com" host=splitoff.herokuapp.com request_id=d94908d8-73fa-4615-983c-72c
7c63a6e73 fwd="134.17.147.79" dyno=web.1 connect=0ms service=10ms status=302 bytes=394 protocol=https
2022-06-30T08:57:56.653636+00:00 heroku[router]: at=info method=GET path="/api/auth/toplevel?shop=splitoffpaystage.myshopify.com" host=splitoff.herokuapp.com request_id=f2617746-18fc-4d4d
-9926-5fdf3a93d78d fwd="134.17.147.79" dyno=web.1 connect=0ms service=4ms status=200 bytes=1404 protocol=https
2022-06-30T08:57:56.985639+00:00 heroku[router]: at=info method=GET path="/api/auth?shop=splitoffpaystage.myshopify.com" host=splitoff.herokuapp.com request_id=5cf57e13-2eb6-4613-9968-1e3
c8b34e4d5 fwd="134.17.147.79" dyno=web.1 connect=0ms service=6ms status=302 bytes=1475 protocol=https
2022-06-30T09:05:21.136843+00:00 heroku[router]: at=info method=GET path="/?hmac=358aa97b18c725d26d2df1d5f8bcc411abf3063d610f0c73d2937e2c700cddb1&host=c3BsaXRvZmZwYXlzdGFnZS5teXNob3BpZnku
Y29tL2FkbWlu&shop=splitoffpaystage.myshopify.com&timestamp=1656579920" host=splitoff.herokuapp.com request_id=a3b671dc-7538-4f3b-91b5-9408404058a4 fwd="134.17.147.79" dyno=web.1 connect=0
ms service=6ms status=200 bytes=736 protocol=https
2022-06-30T09:05:21.313699+00:00 heroku[router]: at=info method=GET path="/assets/index.a6ad990b.js" host=splitoff.herokuapp.com request_id=e16e7e48-9854-4d69-8ad7-032b8eebe213 fwd="134.1
7.147.79" dyno=web.1 connect=0ms service=3ms status=304 bytes=289 protocol=https
2022-06-30T09:05:21.435067+00:00 heroku[router]: at=info method=GET path="/assets/index.5fdbb390.css" host=splitoff.herokuapp.com request_id=85814a64-d4b6-417f-b0f1-b10fb540a01a fwd="134.
17.147.79" dyno=web.1 connect=0ms service=2ms status=304 bytes=289 protocol=https
2022-06-30T09:40:48.690355+00:00 heroku[web.1]: Idling
2022-06-30T09:40:48.694590+00:00 heroku[web.1]: State changed from up to down
2022-06-30T09:40:49.269260+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2022-06-30T09:40:49.321840+00:00 app[web.1]: npm notice
2022-06-30T09:40:49.322264+00:00 app[web.1]: npm notice New minor version of npm available! 8.12.1 -> 8.13.2
2022-06-30T09:40:49.322367+00:00 app[web.1]: npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.13.2>
2022-06-30T09:40:49.322432+00:00 app[web.1]: npm notice Run `npm install -g npm@8.13.2` to update!
2022-06-30T09:40:49.322710+00:00 app[web.1]: npm notice
2022-06-30T09:40:49.464933+00:00 heroku[web.1]: Process exited with status 1
2022-06-30T12:06:01.868298+00:00 heroku[web.1]: Unidling
2022-06-30T12:06:01.883777+00:00 heroku[web.1]: State changed from down to starting
2022-06-30T12:06:07.403466+00:00 heroku[web.1]: Starting process with command `npm run serve`
2022-06-30T12:06:09.346203+00:00 app[web.1]:
2022-06-30T12:06:09.346213+00:00 app[web.1]: > serve
2022-06-30T12:06:09.346213+00:00 app[web.1]: > cross-env NODE_ENV=production node index.js
2022-06-30T12:06:09.346214+00:00 app[web.1]:
2022-06-30T12:06:10.810924+00:00 heroku[web.1]: State changed from starting to up
2022-06-30T12:06:11.428342+00:00 heroku[router]: at=info method=GET path="/?hmac=5c9802ae23191a66867b12c7a87ac06f29f6fcfda7c9447a2ae25184477f3747&host=c3BsaXRvZmZwYXlzdGFnZS5teXNob3BpZnku
Y29tL2FkbWlu&shop=splitoffpaystage.myshopify.com&timestamp=1656590769" host=splitoff.herokuapp.com request_id=d5e176f8-7f90-440a-b4a9-958f5006b802 fwd="134.17.147.79" dyno=web.1 connect=0
ms service=13ms status=200 bytes=736 protocol=https
2022-06-30T12:06:11.638465+00:00 heroku[router]: at=info method=GET path="/assets/index.a6ad990b.js" host=splitoff.herokuapp.com request_id=a06cd7c4-eb3b-4ffd-a0f9-2b70fb6e459e fwd="134.1
7.147.79" dyno=web.1 connect=0ms service=3ms status=304 bytes=289 protocol=https
2022-06-30T12:06:11.787845+00:00 heroku[router]: at=info method=GET path="/assets/index.5fdbb390.css" host=splitoff.herokuapp.com request_id=83a1922f-aebe-41fd-8c87-b8af5330fdaf fwd="134.
17.147.79" dyno=web.1 connect=0ms service=2ms status=304 bytes=289 protocol=https
2022-06-30T12:06:11.979808+00:00 heroku[router]: at=info method=GET path="/?hmac=4bc011af28a3ab2e32d3449f53a1dc86d165387851e50aa6853690bd0e7284d8&host=c3BsaXRvZmZwYXlzdGFnZS5teXNob3BpZnku
Y29tL2FkbWlu&shop=splitoffpaystage.myshopify.com&timestamp=1656590761" host=splitoff.herokuapp.com request_id=dc3205e2-b945-475b-9ada-aae6697d639b fwd="134.17.147.79" dyno=web.1 connect=0
ms service=2ms status=200 bytes=736 protocol=https
2022-06-30T12:06:12.196871+00:00 heroku[router]: at=info method=GET path="/?hmac=c6f2064e6554ed5acd6fc2118873d9a07409bb18b1ee49fa4b10eee0f5769ab7&host=c3BsaXRvZmZwYXlzdGFnZS5teXNob3BpZnku
Y29tL2FkbWlu&shop=splitoffpaystage.myshopify.com&timestamp=1656590766" host=splitoff.herokuapp.com request_id=950432b0-84dc-4bff-8920-f38cea6c7641 fwd="134.17.147.79" dyno=web.1 connect=0
ms service=2ms status=200 bytes=736 protocol=https
2022-06-30T12:11:01.423321+00:00 heroku[router]: at=info method=GET path="/" host=splitoff.herokuapp.com request_id=39737ab3-11f4-4788-a212-ba17a10dafdf fwd="134.17.147.79" dyno=web.1 con
nect=0ms service=2ms status=304 bytes=287 protocol=https
2022-06-30T12:11:01.577074+00:00 heroku[router]: at=info method=GET path="/assets/index.a6ad990b.js" host=splitoff.herokuapp.com request_id=d0e3bdca-5a10-4650-9533-985467a75ca5 fwd="134.1
7.147.79" dyno=web.1 connect=0ms service=1ms status=304 bytes=289 protocol=https
2022-06-30T12:11:01.577875+00:00 heroku[router]: at=info method=GET path="/assets/index.5fdbb390.css" host=splitoff.herokuapp.com request_id=acba61dd-ab2b-4c93-b4aa-9f8c5c1c94f7 fwd="134.
17.147.79" dyno=web.1 connect=0ms service=1ms status=304 bytes=289 protocol=https
2022-06-30T12:11:01.923449+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=splitoff.herokuapp.com request_id=0ed125c0-0115-4273-a6e8-3199d31dcfb8 fwd="134.17.147.79" dyn
o=web.1 connect=0ms service=3ms status=200 bytes=592 protocol=https
2022-06-30T12:46:02.086214+00:00 heroku[web.1]: Idling
2022-06-30T12:46:02.092389+00:00 heroku[web.1]: State changed from up to down
2022-06-30T12:46:02.727070+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2022-06-30T12:46:02.892341+00:00 app[web.1]: npm notice
2022-06-30T12:46:02.892406+00:00 app[web.1]: npm notice New minor version of npm available! 8.12.1 -> 8.13.2
2022-06-30T12:46:02.892473+00:00 app[web.1]: npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.13.2>
2022-06-30T12:46:02.892713+00:00 app[web.1]: npm notice Run `npm install -g npm@8.13.2` to update!
2022-06-30T12:46:02.892843+00:00 app[web.1]: npm notice
2022-06-30T12:46:03.012963+00:00 heroku[web.1]: Process exited with status 1
2022-07-04T08:45:10.916824+00:00 heroku[web.1]: Unidling
2022-07-04T08:45:10.925979+00:00 heroku[web.1]: State changed from down to starting
2022-07-04T08:45:17.000575+00:00 heroku[web.1]: Starting process with command `npm run serve`
2022-07-04T08:45:19.475122+00:00 app[web.1]:
2022-07-04T08:45:19.475166+00:00 app[web.1]: > serve
2022-07-04T08:45:19.475173+00:00 app[web.1]: > cross-env NODE_ENV=production node index.js
2022-07-04T08:45:19.475173+00:00 app[web.1]:
2022-07-04T08:45:20.908316+00:00 heroku[web.1]: State changed from starting to up
2022-07-04T08:45:21.965132+00:00 heroku[router]: at=info method=GET path="/?hmac=6edc1db4224fa669582ad1cc3ffe722e07f71ec662ccae04d303f2e52ebe41ff&host=c3BsaXRvZmZwYXlzdGFnZS5teXNob3BpZnku
Y29tL2FkbWlu&shop=splitoffpaystage.myshopify.com&timestamp=1656924320" host=splitoff.herokuapp.com request_id=3c83569b-d27b-42fa-a7f8-cfc981d841f2 fwd="134.17.147.79" dyno=web.1 connect=0
ms service=15ms status=200 bytes=736 protocol=https
2022-07-04T08:45:22.094531+00:00 heroku[router]: at=info method=GET path="/?hmac=3fdec89988be58f02eae50aab9f1faffb6dd9c779bdc1af286ff98108ee714e8&host=c3BsaXRvZmZwYXlzdGFnZS5teXNob3BpZnku
Y29tL2FkbWlu&shop=splitoffpaystage.myshopify.com&timestamp=1656924314" host=splitoff.herokuapp.com request_id=820f3683-dd30-4f97-b3c1-6d31c5633a78 fwd="134.17.147.79" dyno=web.1 connect=0
ms service=3ms status=200 bytes=736 protocol=https
2022-07-04T08:45:22.142114+00:00 heroku[router]: at=info method=GET path="/assets/index.a6ad990b.js" host=splitoff.herokuapp.com request_id=742de2dd-ea1d-4cb7-8dd0-94c93d5f1787 fwd="134.1
7.147.79" dyno=web.1 connect=0ms service=2ms status=304 bytes=289 protocol=https
2022-07-04T08:45:22.271767+00:00 heroku[router]: at=info method=GET path="/assets/index.5fdbb390.css" host=splitoff.herokuapp.com request_id=90fd542f-9b18-46b0-9371-cf38c9b5b4c5 fwd="134.
17.147.79" dyno=web.1 connect=0ms service=1ms status=304 bytes=289 protocol=https
2022-07-04T08:45:22.983518+00:00 heroku[router]: at=info method=GET path="/?hmac=2d3d705f812e82ad25e6f051dd20259583a31979fd2113a29e38f3c58df16629&host=c3BsaXRvZmZwYXlzdGFnZS5teXNob3BpZnku
Y29tL2FkbWlu&shop=splitoffpaystage.myshopify.com&timestamp=1656924310" host=splitoff.herokuapp.com request_id=a30a0a61-2b8c-404a-a573-d63a631a09d5 fwd="134.17.147.79" dyno=web.1 connect=0
ms service=2ms status=200 bytes=736 protocol=https
2022-07-04T08:46:53.726164+00:00 heroku[router]: at=info method=GET path="/" host=splitoff.herokuapp.com request_id=01c3a154-a7db-41b7-8ad1-8fcfa2c985a3 fwd="134.17.147.79" dyno=web.1 con
nect=0ms service=3ms status=304 bytes=287 protocol=https
2022-07-04T08:46:53.893428+00:00 heroku[router]: at=info method=GET path="/assets/index.a6ad990b.js" host=splitoff.herokuapp.com request_id=3803e7b7-cfc1-449f-b3d7-2a72a7330fea fwd="134.1
7.147.79" dyno=web.1 connect=0ms service=2ms status=304 bytes=289 protocol=https
2022-07-04T08:46:53.905232+00:00 heroku[router]: at=info method=GET path="/assets/index.5fdbb390.css" host=splitoff.herokuapp.com request_id=7a1c14c4-da36-4937-8d41-20697738eed1 fwd="134.
17.147.79" dyno=web.1 connect=0ms service=2ms status=304 bytes=289 protocol=https
2022-07-04T08:46:54.236707+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=splitoff.herokuapp.com request_id=72d6c4b9-6065-4d1d-844d-52e1d3cdd05e fwd="134.17.147.79" dyn
o=web.1 connect=0ms service=21ms status=304 bytes=201 protocol=https
2022-07-04T08:47:16.472554+00:00 heroku[router]: at=info method=GET path="/" host=splitoff.herokuapp.com request_id=2c048f54-0a12-4df8-a0b4-0d8edbf7dbae fwd="134.17.147.79" dyno=web.1 con
nect=0ms service=2ms status=304 bytes=287 protocol=https
2022-07-04T08:47:16.639204+00:00 heroku[router]: at=info method=GET path="/assets/index.5fdbb390.css" host=splitoff.herokuapp.com request_id=8477d89c-00f3-4c84-952d-846d2a3b754c fwd="134.
17.147.79" dyno=web.1 connect=0ms service=3ms status=304 bytes=289 protocol=https
2022-07-04T08:47:16.640274+00:00 heroku[router]: at=info method=GET path="/assets/index.a6ad990b.js" host=splitoff.herokuapp.com request_id=145d5c50-c4b0-4502-895e-468245faea19 fwd="134.1
7.147.79" dyno=web.1 connect=0ms service=3ms status=304 bytes=289 protocol=https
2022-07-04T08:47:16.947070+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=splitoff.herokuapp.com request_id=acb10117-d971-4ab8-b2db-c8e087a78640 fwd="134.17.147.79" dyn
o=web.1 connect=0ms service=2ms status=304 bytes=201 protocol=https
2022-07-04T08:47:19.507599+00:00 heroku[router]: at=info method=GET path="/assets/index.5fdbb390.css" host=splitoff.herokuapp.com request_id=5781a0a1-d035-498d-807d-c60bbfe49556 fwd="134.
17.147.79" dyno=web.1 connect=0ms service=2ms status=304 bytes=289 protocol=https
2022-07-04T09:20:35.598685+00:00 heroku[web.1]: Idling
2022-07-04T09:20:35.600873+00:00 heroku[web.1]: State changed from up to down
2022-07-04T09:20:36.399770+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2022-07-04T09:20:36.578704+00:00 app[web.1]: npm notice
2022-07-04T09:20:36.578792+00:00 app[web.1]: npm notice New minor version of npm available! 8.12.1 -> 8.13.2
2022-07-04T09:20:36.578897+00:00 app[web.1]: npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.13.2>
2022-07-04T09:20:36.579251+00:00 app[web.1]: npm notice Run `npm install -g npm@8.13.2` to update!
2022-07-04T09:20:36.579494+00:00 app[web.1]: npm notice
2022-07-04T09:20:36.725014+00:00 heroku[web.1]: Process exited with status 1
2022-07-05T06:51:39.585196+00:00 heroku[web.1]: Unidling
2022-07-05T06:51:39.598788+00:00 heroku[web.1]: State changed from down to starting
2022-07-05T06:51:45.158641+00:00 heroku[web.1]: Starting process with command `npm run serve`
2022-07-05T06:51:47.536316+00:00 app[web.1]:
2022-07-05T06:51:47.536329+00:00 app[web.1]: > serve
2022-07-05T06:51:47.536330+00:00 app[web.1]: > cross-env NODE_ENV=production node index.js
2022-07-05T06:51:47.536330+00:00 app[web.1]:
2022-07-05T06:51:49.065697+00:00 heroku[web.1]: State changed from starting to up
2022-07-05T06:51:49.658909+00:00 heroku[router]: at=info method=GET path="/" host=splitoff.herokuapp.com request_id=31520d65-203b-4342-8ecd-7b1eab8a7592 fwd="93.84.44.128" dyno=web.1 conn
ect=0ms service=8ms status=304 bytes=287 protocol=https
2022-07-05T06:51:49.912425+00:00 heroku[router]: at=info method=GET path="/assets/index.a6ad990b.js" host=splitoff.herokuapp.com request_id=ab67213b-1c22-4e40-8f3b-e2542ddbd56a fwd="93.84
.44.128" dyno=web.1 connect=0ms service=3ms status=304 bytes=289 protocol=https
2022-07-05T06:51:49.914008+00:00 heroku[router]: at=info method=GET path="/assets/index.5fdbb390.css" host=splitoff.herokuapp.com request_id=ba43deac-ae2d-478e-ab95-47a7fbc8605e fwd="93.8
4.44.128" dyno=web.1 connect=0ms service=3ms status=304 bytes=289 protocol=https
2022-07-05T06:51:50.616978+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=splitoff.herokuapp.com request_id=903696a7-23db-4006-8870-a5832ff29185 fwd="93.84.44.128" dyno
=web.1 connect=0ms service=4ms status=304 bytes=201 protocol=https
2022-07-05T06:55:27.644710+00:00 heroku[router]: at=info method=GET path="/assets/index.5fdbb390.css" host=splitoff.herokuapp.com request_id=3f545b40-ff36-416e-998d-589225191827 fwd="93.8
4.44.128" dyno=web.1 connect=0ms service=2ms status=304 bytes=289 protocol=https
2022-07-05T06:56:33.227548+00:00 heroku[web.1]: Restarting
2022-07-05T06:56:33.232629+00:00 heroku[web.1]: State changed from up to starting
2022-07-05T06:56:33.979244+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2022-07-05T06:56:34.035297+00:00 app[web.1]: npm notice
2022-07-05T06:56:34.035385+00:00 app[web.1]: npm notice New minor version of npm available! 8.12.1 -> 8.13.2
2022-07-05T06:56:34.035475+00:00 app[web.1]: npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.13.2>
2022-07-05T06:56:34.035896+00:00 app[web.1]: npm notice Run `npm install -g npm@8.13.2` to update!
2022-07-05T06:56:34.036098+00:00 app[web.1]: npm notice
2022-07-05T06:56:34.171778+00:00 heroku[web.1]: Process exited with status 1
2022-07-05T06:56:39.280283+00:00 heroku[web.1]: Starting process with command `npm run serve`
2022-07-05T06:56:41.859273+00:00 app[web.1]:
2022-07-05T06:56:41.859286+00:00 app[web.1]: > serve
2022-07-05T06:56:41.859287+00:00 app[web.1]: > cross-env NODE_ENV=production node index.js
2022-07-05T06:56:41.859287+00:00 app[web.1]:
2022-07-05T06:56:43.382076+00:00 heroku[web.1]: State changed from starting to up

RonnieZie
Shopify Partner
5 0 0

Looks like your server is up and running. Assuming you have updated the main and callback URLs in the Partner Dashboard to point to your new app. To test the deployed app browse to 

https://my-app-name.herokuapp.com/api/auth?shop=my-dev-shop-name.myshopify.com

Note

skoryk
Tourist
6 1 2

skoryk_0-1657177288736.png

I see such a page after clicking on this url

My setup in Partner Dashboard:

App URL: https://splitoff.herokuapp.com/

Allowed redirection URL(s): https://splitoff.herokuapp.com/auth/callback

RonnieZie
Shopify Partner
5 0 0

Try whitelisting these URLs too.

 

 https://splitoff.herokuapp.com/ auth/callback
 https://splitoff.herokuapp.com/ auth/shopify/callback
 https://splitoff.herokuapp.com/ api/auth/callback

skoryk
Tourist
6 1 2

It didn't help, I see the same error, but when I try to install the application through the manage link, I see my application for a second, then there is a redirect to the store page and this page appears.

Maybe I need to add some settings for oauth in my heroku?

skoryk_1-1657269813332.png

 

skoryk
Tourist
6 1 2

This is an accepted solution.

To solve this problem, simply remove the backslash in the HOST configuration in heroku

skoryk_0-1657798030334.png

 

Mohit_garg
Shopify Partner
15 0 1

all backslash? like after https: also?

btrain-004
Shopify Partner
12 0 3

Yes, essentially you want to remove the Schema, leaving only subdomain, domain and top level domain. 

 

https://www.geeksforgeeks.org/components-of-a-url/

 

 

fozail
Shopify Partner
1 0 0

I have same problem and solved by this command 

npm run deploy -- --reset