Project

General

Profile

Deployment in server machine » History » Version 1

Guanji Wang, 29/04/2016 11:54

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