Forum > Pas2JS
Compileserver (simpleserver) with pas2js
mangakissa:
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?
mattias:
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/
d-_-b:
Im trying to create a Web Browser Application from New Project.
I setup my global options as on the wiki.
Compiled `fpcsrc\packages\fcl-web\examples\simpleserver` manually and changed path of compileserver from $MakeExe(IDE,simpleserver)
to `C:\lazarus\fpc\3.2.2\source\packages\fcl-web\examples\simpleserver\simpleserver.exe`.
When I run the project I get the following:
Simple Web Server:
Wrong compileserver exe: simpleserver does not support --version, maybe this is an old version?
see Tools / Options / Environment / Simple Web Server / Simpleserver
Where can i find the correct compileserver.exe with --version support?
I'm using Lazarus 3.0 (rev lazarus_3_0) FPC 3.2.2 x86_64-win64-win32/win64 with the latest pas2js main git branch.
Thanks,
TRon:
--- Quote from: d-_-b on February 16, 2024, 11:56:48 am ---Where can i find the correct compileserver.exe with --version support?
--- End quote ---
The version option was added last year in trunk (see commit) so you would have to download the sources from trunk and compile it manually to create the (correct) executable.
Thaddy:
You are aware the compiler itself can run as cgi? You only need to provide an interface.
Navigation
[0] Message Index
[#] Next page