Project

General

Profile

Deployment in server machine » History » Version 2

Guanji Wang, 29/04/2016 13:31

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