Skip to content
← Back to Community
Need some help with "Make sure your repl has a port open and is ready to receive HTTP traffic."
Profile icon
segow

After following one of repl.it's own tutorials for making a static site generator, I added a few of my own content pages and now when opening a link I get the error message:

image

This is despite the fact that I had just opened a port in the shell, as explained in the tutorial, with the commands "cd public" and "python -m http.server"

Any help on this would be much appreciated!

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
Profile icon
LangenOuyang
Profile icon
AIDENRUH
Profile icon
bh03oq
Profile icon
EVAN-MATTHEWMA1
Profile icon
sajadpp
Profile icon
XanderPrice
Profile icon
MiaReuter
Profile icon
JamesHustis
Profile icon
UwUNya1
Profile icon
BataBoom
Comments
hotnewtop
Profile icon
Coder100

that's because that is the shell not the replit run button.

The shell basically only runs commands, and all those features are lost when you click the run button. Instead, create a new .replit file, and add this:

run = "sh bash.sh"

then, create a bash.sh and add this:

cd public python -m http.server
Profile icon
Superboy119

It did not work

Profile icon
JamesHustis

Someone tell me how to fix this i want to play eaglercraft

Profile icon
DavontePage

hello l

Profile icon
CONNERALVARADO

python -m http.server

Profile icon
CONNERALVARADO

cd public

Profile icon
AhmedSheikh4

omgb thx\

wed
awsd
s
da
sd
as
da
sd
a
das
d
sad
sa
fds
c
rf
gsdncsgkhckhgasdfasdwhj

Profile icon
WalidEid

Solution does not work.

Profile icon
JasonBravura
Profile icon
BrianCruz7

Screenshot 2022-03-10 1.24.51 PM can someone pls help me with this i dont like it and i want to play

Profile icon
DavontePage

hi