react-ssr-apollo-boilerplate
react-ssr-apollo-boilerplate copied to clipboard
Deploy to Heroku, Netlify and others
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 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!
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?