France-ioi / codecast

Codecast C learning platform (formerly fioi-recorder).
MIT License
30 stars 17 forks source link

Can't compile locally #139

Open pkrll opened 5 years ago

pkrll commented 5 years ago

I've cloned the repo, built and run it on my own computer. But when I try to compile, I get the error message undefined.

In the console, it says:

POST http://localhost/translate 404 (Not Found)

The config.json file looks like this:

{
  "port": 80,
  "baseUrl": "https://codecast.france-ioi.org/next",
  "mountPath": "/next",

I've also tried setting baseUrl to localhost.

I could not build c-to-json, so I downloaded it from https://codecast.france-ioi.org/next/c-to-json as per the suggestion found here.

remisharrock commented 5 years ago

I've seen in your forked codecast repository that you created a Docker version, great ! Let me try that. Everything works great for you now ?

pkrll commented 5 years ago

Ah, yes, it works perfectly now!