menu

Saleor Commerce

The world’s fastest growing open-source e-commerce platform with billions of dollars transacted. Powered by Python, GraphQL, ReactJS and PWA.

Channels
# All channels
view-forward
# General
view-forward
# Announcements
view-forward
# Design
view-forward
# Development
view-forward
# Saleor Features
view-forward
Team

Stuck on deployment.

May 31, 2020 at 1:05am

Stuck on deployment.

May 31, 2020 at 1:05am (Edited 1 month ago)
Saleor Storefront and Dashboard are hosted on Netlify and I can visit their sites independently.
Saleor Hosted at Heroku, where I just receive a "404 Not Found" at "/" when going to the application. I can go to .../graphql, but I am unsure what I am missing for the homepage. :/
Any help would be appreciated and I will definitely work on a document on how to deploy everything together if someone can help me solve this.

May 31, 2020 at 5:56am
Hi ! That's the expected behavior with debug=false. You are trying to access the saleor-core api homepage but there is no such page. To access the storefront you have to type the storefronts netlify url. Hope that helps!
like-fill
1
  • reply
  • like
Okay I actually just figured that out! So, maybe I am just confused and you can help me understand the rest...
Should I expect the storefront hosted on netlify to replace the root / of my heroku instance? (my-app.herokuapp.com should be the storefront)
Also, should my dashboard be available at my-app.herokuapp.com/dashboard ?
There must be something I am missing here.
like-fill
1
  • reply
  • like
Okay actually I might be dumb...This has absolutely nothing to do with the heroku app, yet I am trying to access it as if it was.
I would want to host the storefront at some domain called www.sellstuff.com.
Then would I want to host the dashboard at www.sellstuff.com/dashboard or maybe a sub domain like dashboard.sellstuff.com.
  • reply
  • like
I found that with netlify you can do that using a configuration file. https://docs.netlify.com/routing/redirects/rewrites-proxies/
like-fill
1
  • reply
  • like
will check this out, thank you!
  • reply
  • like
Trying to setup the proxy to another service, but still cannot access the dashboard from the storefront url followed by /dashboard/
Edited
like-fill
1
  • reply
  • like

June 1, 2020 at 6:28am
The best way to do that although is adding a custom domain to your netlify app. Then add to your dashboard as a subdomain like admin.example.com. https://docs.netlify.com/domains-https/custom-domains/
Edited
like-fill
2
  • reply
  • like
I think this is the correct way to go. I will work on documenting my deployment and figure out how to have it posted to saleor's docs.
  • reply
  • like

June 10, 2020 at 5:37am
I think this is the correct way to go. I will work on documenting my deployment and figure out how to have it posted to saleor's docs.
hello, david can you pass me mp, any tutorial you have at hand on how you uploaded it to heroku, I guess you already solved, and I'm almost the same as you. I can't see my dahsboard in heroku nor the showcase.
What I do not understand as the official page is so incomplete, they themselves do not know how to pass it to production?
  • reply
  • like
So, you shouldn't see anything from Heroku if all you are hosting on Heroku is saleor, as in saleor core.
You should have deployed the storefront to another host, in my case netlify. Due to their architecture, you should never be accessing the Heroku app since it is just an API for the storefront and dashboard to call into.
Storefront Domain: www.example.com Dashboard Domain: dashboard.example.com
The Storefront and Dashboard are the only places you will see the application, so once those are deployed, you will have a working PWA Saleor Ecommerce Store.
  • reply
  • like