react-ssr-apollo-boilerplate icon indicating copy to clipboard operation
react-ssr-apollo-boilerplate copied to clipboard

Deploy to Heroku, Netlify and others

Open vishnup95 opened this issue 4 years ago • 2 comments

Hi @sepehr1313 , Sorry for opening this again.Can you please update with info needed for deployment of this boilerplate. Would be much helpful.

Thanks for this!

vishnup95 avatar Aug 10 '20 04:08 vishnup95

@vishnup95 You need to run npm run build first then you'll find your client and server files under build folder. You need to run server.js and serve the asset files in client folder on your server. Serving asset files on Nginx or Apache is preferable on production.

A static index.html is also generated and written to your clientBuild directory. You are now able to deploy the build/client directory to a static webhost (such as Netlify or AWS S3) and serve your application from there!

frntendev avatar Aug 10 '20 09:08 frntendev

Hi @sepehr1313, i tried to use npm run build then start the nodejs server with command "node build/server/server.js" when I tried to serve the web it says on server "express" not found can you please help?

haziqdev avatar Jan 28 '21 18:01 haziqdev