Project

General

Profile

Deployment in server machine » History » Version 1

Anonymous, 29/04/2016 11:54

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 1 Anonymous
* 3. Create new folder for web application :  mkdir Sitools2_solar
6 1 Anonymous
* 4. Execute the jar as a local project
7 1 Anonymous
* 5. Do the test for the distribution of the web application as a local application : 
8 1 Anonymous
    netstat -anp | grep {$port_num}
9 1 Anonymous
    wget http://localhost:{$port_num}/
10 1 Anonymous
11 1 Anonymous
* 6. Install the user postgres if necessary:
12 1 Anonymous
    psql -U postgres -h idc-db1 -d SiTools2_Picard_DB
13 1 Anonymous
14 1 Anonymous
* 7. Map the url for between the local and the remote:
15 1 Anonymous
    cd /etc/apache2/sites-available/
16 1 Anonymous
17 1 Anonymous
* 8.  Create a new file for your web site address : 
18 1 Anonymous
     vi idoc-solar-portal.conf
19 1 Anonymous
!Selection_140.png!
20 1 Anonymous
21 1 Anonymous
22 1 Anonymous
* 9. Execute the conf file : 
23 1 Anonymous
      a2ensite idoc-solar-portal.conf