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