DEV Community

Discussion on: How To Deploy a Full-Stack MERN App with Heroku/Netlify

Collapse
 
stlnick profile image
Nick

Okay just to get some context.

Are you deploying client to Netlify?
And is your project structure the same as mine in the article? As in do you, in the root of your project, have a separate client and server folder?

Collapse
 
kenkarma profile image
kenkarma • Edited

Yes exactly the same
I deployed the server successfully on heroku that's fine, but i'm getting errors when i try to deploy the client on Netlify

Thread Thread
 
stlnick profile image
Nick

Okay, great. Looking it up through google it looks like there’s some permission issue with the repo and Netlify being able to clone it. Check the link below out and go to “Build fails with exit status 128”. Also maybe check out the “Troubleshoot repository linking” section. There’s a few steps to follow to try and correct the issue.

docs.netlify.com/configure-builds/...

Do you own that repository? As in, is it yours alone and do you have admin privileges on it?

Hopefully those steps can remedy it but let me know if not and we can dig deeper.

Thread Thread
 
kenkarma profile image
kenkarma

Somehow I got it to work by deleting the repo and restarting everything. Thanks for the quick reply though!!

Thread Thread
 
stlnick profile image
Nick

Awesome! I’m glad it worked for you.