My host online:3000 automatically redirect to cn.codecombat.com


#1

I have just git clone the codecombat and installed it on my EC2.
But when I visit the website,it automatically redirect to cn.codecombat.com.I don’t know what happened?
So I have some questions?
Have I installed successfully?
Can’t codecombat run on personal online server?
Cause it need payment?

If it needs to pay,I can pay for it.But the cn.codecombat.com is too slow,my students can’t play it normally!!This is the most serious problem.

So,please help me.


#2

Just throwing in an idea. You should be able to run everything localhost. Can your students join that server (assuming you’re in a network and ports are no problem)? (Might confuse myself though, never tried that)


#3

Hi xi_studio, try commenting out this line to not set up the China redirect middleware.


#5

line 27? Promise = require ‘bluebird’?
I have this problem too. How to fix.


#6

It’s now this line.


#7

thank you very much!


#8

after commenting out that line
“setupCountryRedirectMiddleware app, ‘china’, config.chinaDomain”
then i
npm install
npm run dev
but still redirect to cn.codecombat.com

I need your help T.T


#9

Hmm; try commenting this line, too? https://github.com/codecombat/codecombat/blob/634c0b6eeb2dff05bb4646537d81b9bc46f45419/server_setup.coffee#L405


#10

OMG!It works! Thank you!
You were great!
I really really thank you!

^ ^
太感谢了!