0

I've a React.js application which depends on an API (based on Django Rest Framework).

The React and Django applications are decoupled i.e in my local development environment, I run two servers (each using a different port), one for Django and the other for the React.

Is it possible to deploy this to a single heroku application or will I need two separate applications?

1 Answer 1

1

You can use the same heroku instance if you serve the static React files from the Django app, perhaps in the public directory. Tell the Django app to respond to GET requests to / by delivering the main React html page.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.