Skip to content
This repository has been archived by the owner on Jun 3, 2019. It is now read-only.

Deploy to local node server or Azure #592

Open
hitesh97 opened this issue Oct 11, 2018 · 2 comments
Open

Deploy to local node server or Azure #592

hitesh97 opened this issue Oct 11, 2018 · 2 comments

Comments

@hitesh97
Copy link

Hi Guys,
Came across this project as I am beginning my journey to Universal React App.
This project seems a very comprehensive and very well documented application hence, Hoping to use it.

I cannot seem to understand, How will I deploy this application Locally or on Azure?

When I build production build using 'yarn build' it creates 'build' directory with 'client' and 'server' files.
However, when I take the 'build' directory and copy / host it on another machine / upload it to Azure, I cannot seem to run/execute server script by simply giving command 'node index.js' from 'server' directory!

Is there anything I am missing?
Any help will be grateful and help me choose this project as my base project to start with!

Thanks once again in advance.

@mschipperheyn
Copy link

There are many ways in which you can do this. Personally, I use dokku, which gives you a Heroku like experience but using generic cloud servers.

@unleashit
Copy link

unleashit commented Nov 3, 2018

Just tried and it works fine for me. What are you getting in the console?

There's no particular way to deploy this from any other node project. The only difference from standard React is if you don't host the static files on the same machine as the server, you have to specify where your static assets are in the output html (and remove the local static assets path from Node).

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants