K
K
Kirill Ivanov2020-04-16 20:12:51
React
Kirill Ivanov, 2020-04-16 20:12:51

How to deploy React + Strapi?

Hello! I'm making a website using react and one of the headless CMS - Strapi. The question arose of how to deploy all this goodness. Now the project has two folders - frontend and backend. Both have localhost in their settings and they just use different ports - the first sends requests to the second and displays the content.

And what should the folder structure look like when publishing to hosting? So is it possible to throw the builds separately into the root folder of the site or is it not so simple? The Strapi documentation says a lot about Heroku, Amazon AWS, and so on. , and basically describes how to publish the frontend and backend on different servers. I'm also interested in how to do this on one hosting.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question