Project

General

Profile

Deployment in server machine » History » Version 2

Anonymous, 29/04/2016 13:31

1 1 Anonymous
h1. Deployment in server machine
2 1 Anonymous
3 1 Anonymous
* 1. Connection with server machine :  ssh production@idoc-solar-test
4 1 Anonymous
* 2. Enter the dir /usr/local
5 2 Anonymous
* 3. Create new folder for web application :  mkdir Sitools2_solar, copy the installer jar into the folder.
6 2 Anonymous
* 4. Execute the jar as a local project : java -jar SITools2-3.0.1-install.jar
7 2 Anonymous
   !Selection_141.png!
8 1 Anonymous
* 5. Do the test for the distribution of the web application as a local application : 
9 1 Anonymous
    netstat -anp | grep {$port_num}
10 1 Anonymous
    wget http://localhost:{$port_num}/
11 1 Anonymous
12 1 Anonymous
* 6. Install the user postgres if necessary:
13 1 Anonymous
    psql -U postgres -h idc-db1 -d SiTools2_Picard_DB
14 1 Anonymous
15 1 Anonymous
* 7. Map the url for between the local and the remote:
16 1 Anonymous
    cd /etc/apache2/sites-available/
17 1 Anonymous
18 2 Anonymous
* 8. Create a new file for your web site address : 
19 1 Anonymous
     vi idoc-solar-portal.conf
20 1 Anonymous
!Selection_140.png!
21 1 Anonymous
22 1 Anonymous
23 1 Anonymous
* 9. Execute the conf file : 
24 1 Anonymous
      a2ensite idoc-solar-portal.conf