Skip to content
← Back to Community
Run command for index.html?
Profile icon
nimirium

Hey, I cloned a github repo and I want to run it.
In the editor, it asks me for a run command.
I just want to run index.html. What should my command be?

Voters
Profile icon
IchHasse
Profile icon
JacksonMeires
Profile icon
nimirium
Comments
hotnewtop
Profile icon
[deleted]

I am guessing that your site repo on Github contains HTML, CSS, image and maybe JavaScript files, and that index.html is the homepage? If this is the case you should b eable to just import it and the resulting repl will have a .replit file that contains the following:

language = "html" run = ""

If this is the case you should just be able to click the run button to start the web server which will in turn display the site in the web view window.

Profile icon
nimirium

@malvoliothegood it worked, thanks :)
It didn't recognise what you suggested, so I deleted my repl, imported again, set it up with "HTML, CSS, JS" language and empty run command, and it worked.

Profile icon
[deleted]

@nimirium Cool.