Comments (8)
I wouldn't use either (except the console one for debugging), but rather install the server as a service/daemon. It's damn easy anyway, just add 1 unit to broker's uses clause.
from brookframework.
@Lele what unit to add?
from brookframework.
@michaelvanham
If you really need to run Brook server alongside with forms in Windows, you should place the whole Brook application in separate thread. There is no way to combine this functionality in single-threaded application. Handling of Windows messages requires one closed loop, while handling of server requests needs another loop, and both are blocking.
from brookframework.
@kodok-buncit, use the menu "File | New ... | Brook framework > Embedded daemon server". And in a terminal (as super user), run:
myapp -i
It runs your web server as daemon, without the ugly black window.
from brookframework.
Can I close this issue friends?
from brookframework.
Works great as a service.
For future readers: if you already have a Brook app setup to use the built in webserver, you can change it to operate as service by simply removing brookfclhttpappbroker from the uses clause, and adding brookfclhttpdaemonbroker instead.
Thanks everyone.
from brookframework.
Hallo, I need to change embedded web server port. how to do that ?
from brookframework.
unit Brokers;
{$mode objfpc}{$H+}
interface
uses
BrookFCLHttpAppBroker, BrookUtils, BrookFCLEventLogBroker;
implementation
initialization
BrookSettings.Port := 8080;
BrookSettings.LogActive:=true;
BrookSettings.LogFile:= './logbrook.txt';
end.
from brookframework.
Related Issues (20)
- Why plugins projects on github to brookframework is closing? HOT 4
- Telegram plugin for brookframework HOT 15
- i18n HOT 4
- Version 4 ? HOT 14
- libbrook.pas in Source HOT 3
- tardigrade demos throwing errors in libbrook HOT 4
- Server requirements? HOT 4
- dopf & LastInsertID HOT 4
- httprouter.lpr throwing error HOT 2
- How am I supposed to free worker thread in brook daemon? HOT 9
- Use legacy application with tardigrade HOT 19
- CPU Activity is high for tardigrade projects BROOK4 HOT 4
- More documentation HOT 1
- Can't get POST request data HOT 13
- Brookframework with sagui (legacy) HOT 11
- HTTP Client HOT 1
- Where did the captcha plugin for 4.0 go? HOT 1
- Some suggestion about JTemplate? HOT 3
- [IDEA] New repository HOT 1
- EBrookHTTPServer: Failed to send data in request for HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brookframework.