Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Scout/Tutorial/4.0/cloud/local cloud"
(Created page with "== Run your Application local == For developing and testing issues its often required to run the application on the local machine. In this section your will learn how to set-...") |
|||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | == | + | {{note|Scout Tutorial|This page belongs to the [[{{BASEPAGENAME}}/Cloud Step-by-Step|Cloud Tutorial]]. |
+ | * Back: [[{{BASEPAGENAME}}/deploy_on_cloud|Deploy your Application to the Cloud ]].}} | ||
+ | |||
+ | == Deploy your Scout App to a Local Cluster == | ||
+ | |||
For developing and testing issues its often required to run the application on the local machine. | For developing and testing issues its often required to run the application on the local machine. | ||
In this section your will learn how to set-up a local environment to run multiple server nodes. | In this section your will learn how to set-up a local environment to run multiple server nodes. | ||
Line 41: | Line 45: | ||
# /org.eclipse.scout.helloworld.ui.rap/products/development/config.ini | # /org.eclipse.scout.helloworld.ui.rap/products/development/config.ini | ||
# /org.eclipse.scout.helloworld.ui.rap/products/production/config.ini | # /org.eclipse.scout.helloworld.ui.rap/products/production/config.ini | ||
+ | |||
+ | {{ScoutPage|cat=Tutorial 4.0}} |
Latest revision as of 06:30, 6 August 2014
Contents
Deploy your Scout App to a Local Cluster
For developing and testing issues its often required to run the application on the local machine. In this section your will learn how to set-up a local environment to run multiple server nodes.
Install load balancer
As load balancer we recommend to use the Apache HTTPD Service. Download here.
Configuration
Open the file "config/httpd.conf" Enable the following plugins (Uncomment the imports)
- mod_proxy.so
- mod_proxy_balancer.so
- mod_proxy_http.so
Include the file "httpd-vhosts.conf". For this search for "httpd-vhosts.conf" and uncomment the line.
Now opten the file "config/extra/httpd-vhosts.conf". Uncomment the line with "##NameVirtualHost *:80" and insert the following code:
<VirtualHost *:80> ProxyRequests off ServerName localhost <Proxy balancer://cluster> BalancerMember http://localhost:8081 BalancerMember http://localhost:8082 BalancerMember http://localhost:8083 </Proxy> ProxyPass / balancer://cluster/ </VirtualHost>
Redirect you Clients
To use the Load Balancer with your Clients you have to update their Server URL to: server.url=http\://localhost\/helloworld_server/process
for the following config-files:
- /org.eclipse.scout.helloworld.ui.swt/products/development/config.ini
- /org.eclipse.scout.helloworld.ui.swt/products/production/config.ini
- /org.eclipse.scout.helloworld.ui.swing/products/development/config.ini
- /org.eclipse.scout.helloworld.ui.swing/products/production/config.ini
- /org.eclipse.scout.helloworld.ui.rap/products/development/config.ini
- /org.eclipse.scout.helloworld.ui.rap/products/production/config.ini
The Scout documentation has been moved to https://eclipsescout.github.io/.