-
Notifications
You must be signed in to change notification settings - Fork 30
Deployment to server #4
Comments
@Prashant-Mutnale since this is a server-side rendered app you can host on any platform that supports node. I believe firebase and surge support static websites only so those tools will not work. If you are looking for a simple solution I recommend Heroku. I can add some documentation on deploying to Heroku. I will let you know when that is done. |
Thanks @maxparelius for the response, sure i will try to deploy it in Heroku. |
@Prashant-Mutnale I have a deployment documentation section here and has information about deploying to heroku: https://trustworktech.github.io/create-react-ssr-app/docs/deployment |
Thanks @maxparelius for the documentation I did deploy it to heroku but i'm facing some issue with the http i guess i have attached the image below |
@Prashant-Mutnale unable to see the screen shot |
@Prashant-Mutnale can I see what your Procfile looks like? |
@maxparelius i don't have any Procfile in my root directory. i even tried to deploy the create-react-ssr-app without anychanges but still its showing the same error for it |
@Prashant-Mutnale I would create a file called
You will also need to build the app during heroku deployments so would add an npm script like so to build the app: |
Thanks @maxparelius I followed the steps by adding Procfile and adding script to the package.json So when i check it by running the heroku logs --tail it shows the error as Error: Cannot find module '/app/build' my Procfile consists as and package.json as { |
@Prashant-Mutnale Sorry for the delay. I investigated and saw I had a bug in the package. Thanks for patience. Go ahead and update react-ssr-scripts with |
I verified its working on my end. |
@Prashant-Mutnale were you able to get it working? Can I close? |
Yes @maxparelius we can close it now its working fine. |
How could i deploy it to surge or node server?Trying to deploy it in firebase but it didn't work out
The text was updated successfully, but these errors were encountered: