|
<< Click to Display Table of Contents >> Navigation: Deployment > Deployment Targets > Deploying Your Application As A Stand Alone Server |
Stand Alone Server / Service Deployment
When you are developing your application, simply running the SA Server and typing http://127.0.0.1:8888/$/start on your browser is enough for running your application.
http://127.0.0.1 stands for the local host, 8888 is the port the embeded web server is listening to (check TIWServerControllerBase for learning about the Port property) and /$/start is the IntraWeb command that forces the start of a new user session.
You can also test your application through your network. From another computer, simply type the IP of the hosting computer (ex: 192.168.100.10) and include the port number and the new session command: http://192.168.100.10:8888/$/start.
If you can't open the application, please check for proper network settings as well any firewall/router/proxy/etc rules that may prevent the proper communication.
Although you can simply let the Executable running, we recomend you deploy your application as a Windows Service, as it makes easier to manage your application. Having your application as a Windows Service allows your application to start automatically when the server starts.
Deploying a Stand Alone Server (SA Server) application is simple. First your need to turn your SA Server in a Windows Service SA Server. Open your DPR source code and change the IWStart.Execute parameter to False. This will prevent the GUI to be shown.
1.program MyIWApplication;
2.
3.uses
4. IWStart,
5. Main in 'Main.pas' {formMain: TIWAppForm},
6. ServerController in 'ServerController.pas' {IWServerController: TDataModule};
7.
8.{$R *.res}
9.
10.begin
11. // the Execute boolean parameter as False prevents the GUI to be shown
12. TIWStart.Execute(False);
13.end.
More