Author Topic: Compileserver (simpleserver) with pas2js  (Read 1026 times)


  • Hero Member
  • *****
  • Posts: 969
Compileserver (simpleserver) with pas2js
« on: February 25, 2019, 03:02:06 pm »
I have in options the path to the simpleserver (now compileserver) set to C:\lazarus\components\pas2js\bin\compileserver.exe on port 3000. If I create a new app, I set in the configfile that a server is needed on port 3000.
Then I put the line writeln('hello') and compile it without errors. Then I run the app without debugging. Nothing happens. When I want to run for the second time, it comes with the errer "file not open"

How can I use simpleserver with pas2js?
Lazarus 1.84 (32b) / FPC 3.0.4
Windows 10


  • Administrator
  • Full Member
  • *
  • Posts: 154
Re: Compileserver (simpleserver) with pas2js
« Reply #1 on: February 25, 2019, 03:14:16 pm »
You can start compilerserver with option -s, then it will behave like simpleserver.

Or you can build simpleserver. Its sources can be found in fpc trunk packages/fcl-web/examples/simpleserver/