Moralis-admin-cli deploy without index.html in same folder

I’m trying to use moralis-admin-cli deploy on my dapp but get the error “Destination folder must contain: index.html!”

Is there a way around that? I use npm start to deploy on localhost. But when I change from the main folder to the public folder that contains index.html, I’m able to use the command but the site it gets deployed to is blank.

I’m not quite sure how to get around this.

Is your site in the desired folder empty? are you using React for this btw?

I’m using the ethereum-boilerplate ( right now. And yes, it is react.


Hey @brandinooooo

You need to run yarn build in the root folder of project, after this you need to go the the build fodler : cd build and run deploy command from here

Let me know how it will work for you

1 Like