[doc] Created UPDATE file.
FEA: ItEr74S03CommunityMaterialItEr73S03
This commit is contained in:
parent
abb718795c
commit
c186dd9e7a
2 changed files with 116 additions and 3 deletions
7
INSTALL
7
INSTALL
|
|
@ -2,7 +2,8 @@ Install
|
||||||
=======
|
=======
|
||||||
|
|
||||||
This is a guide about how to install *NavalPlan* project in your system. If you
|
This is a guide about how to install *NavalPlan* project in your system. If you
|
||||||
want to know how to compile it manually see ``HACKING`` file.
|
want to upgrade your *NavalPlan* version see ``UPDATE`` file. If you want to
|
||||||
|
know how to compile it manually see ``HACKING`` file.
|
||||||
|
|
||||||
.. contents::
|
.. contents::
|
||||||
|
|
||||||
|
|
@ -67,7 +68,7 @@ Debian/Ubuntu
|
||||||
|
|
||||||
* Download database installation script::
|
* Download database installation script::
|
||||||
|
|
||||||
$ wget -O install.sql "http://navalplan.git.sourceforge.net/git/gitweb.cgi?p=navalplan/navalplan;a=blob_plain;f=scripts/database/install.sql;hb=HEAD"
|
$ wget -O install.sql http://downloads.sourceforge.net/project/navalplan/NavalPlan/install_1.1.1.sql
|
||||||
|
|
||||||
* Create database structure::
|
* Create database structure::
|
||||||
|
|
||||||
|
|
@ -169,7 +170,7 @@ openSUSE
|
||||||
|
|
||||||
* Download database installation script::
|
* Download database installation script::
|
||||||
|
|
||||||
$ wget -O install.sql "http://navalplan.git.sourceforge.net/git/gitweb.cgi?p=navalplan/navalplan;a=blob_plain;f=scripts/database/install.sql;hb=HEAD"
|
$ wget -O install.sql http://downloads.sourceforge.net/project/navalplan/NavalPlan/install_1.1.1.sql
|
||||||
|
|
||||||
* Create database structure::
|
* Create database structure::
|
||||||
|
|
||||||
|
|
|
||||||
112
UPDATE
Normal file
112
UPDATE
Normal file
|
|
@ -0,0 +1,112 @@
|
||||||
|
Update
|
||||||
|
======
|
||||||
|
|
||||||
|
This is a guide about how to upgrade *NavalPlan* when a new version is released.
|
||||||
|
If you want to know how to install the application ``INSTALL`` file.
|
||||||
|
|
||||||
|
.. contents::
|
||||||
|
|
||||||
|
|
||||||
|
NavalPlan automatic update
|
||||||
|
--------------------------
|
||||||
|
|
||||||
|
Ubuntu PPAs
|
||||||
|
~~~~~~~~~~~
|
||||||
|
|
||||||
|
Instructions::
|
||||||
|
|
||||||
|
$ sudo apt-get update
|
||||||
|
$ sudo apt-get install navalplan
|
||||||
|
|
||||||
|
|
||||||
|
Debian packages
|
||||||
|
~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Instructions:
|
||||||
|
|
||||||
|
* Download the new package::
|
||||||
|
|
||||||
|
$ wget http://downloads.sourceforge.net/project/navalplan/NavalPlan/navalplan_1.1.1-1_amd64.deb
|
||||||
|
|
||||||
|
* Install package::
|
||||||
|
|
||||||
|
# dpkg -i navalplan_1.1.1-1_amd64.deb
|
||||||
|
|
||||||
|
* Install new dependencies if needed::
|
||||||
|
|
||||||
|
# apt-get install -f
|
||||||
|
|
||||||
|
|
||||||
|
NavalPlan manual update
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
Debian/Ubuntu
|
||||||
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
* Stop Tomcat::
|
||||||
|
|
||||||
|
# /etc/init.d/tomcat6 stop
|
||||||
|
|
||||||
|
* Download database upgrade scripts from previous version. For example, if you
|
||||||
|
are upgrading from *NavalPlan 1.0.4* to *NavalPlan 1.1.1* you should download
|
||||||
|
``upgrade_1.1.0.sql``::
|
||||||
|
|
||||||
|
$ wget http://downloads.sourceforge.net/project/navalplan/NavalPlan/upgrade_1.1.0.sql
|
||||||
|
|
||||||
|
* Upgrade database::
|
||||||
|
|
||||||
|
$ psql -h localhost -U navalplan -W navalplan < upgrade_1.1.0.sql
|
||||||
|
|
||||||
|
* Download ``.war`` file of new version from SourceForge.net::
|
||||||
|
|
||||||
|
$ wget -O navalplan.war http://downloads.sourceforge.net/project/navalplan/NavalPlan/navalplan_1.1.1.war
|
||||||
|
|
||||||
|
* Backup current deployed application::
|
||||||
|
|
||||||
|
# mv /var/lib/tomcat6/webapps/navalplan/ /tmp/
|
||||||
|
|
||||||
|
* Copy war to Tomcat 6 web applications directory::
|
||||||
|
|
||||||
|
# cp navalplan.war /var/lib/tomcat6/webapps/
|
||||||
|
|
||||||
|
* Start Tomcat 6::
|
||||||
|
|
||||||
|
# /etc/init.d/tomcat6 start
|
||||||
|
|
||||||
|
* Go to http://localhost:8080/navalplan/
|
||||||
|
|
||||||
|
|
||||||
|
openSUSE
|
||||||
|
~~~~~~~~
|
||||||
|
|
||||||
|
* Stop Tomcat::
|
||||||
|
|
||||||
|
# /etc/init.d/tomcat6 stop
|
||||||
|
|
||||||
|
* Download database upgrade scripts from previous version. For example, if you
|
||||||
|
are upgrading from *NavalPlan 1.0.4* to *NavalPlan 1.1.1* you should download
|
||||||
|
``upgrade_1.1.0.sql``::
|
||||||
|
|
||||||
|
$ wget http://downloads.sourceforge.net/project/navalplan/NavalPlan/upgrade_1.1.0.sql
|
||||||
|
|
||||||
|
* Upgrade database::
|
||||||
|
|
||||||
|
$ psql -h localhost -U navalplan -W navalplan < upgrade_1.1.0.sql
|
||||||
|
|
||||||
|
* Download ``.war`` file of new version from SourceForge.net::
|
||||||
|
|
||||||
|
$ wget -O navalplan.war http://downloads.sourceforge.net/project/navalplan/NavalPlan/navalplan_1.1.1.war
|
||||||
|
|
||||||
|
* Backup current deployed application::
|
||||||
|
|
||||||
|
# mv /srv/tomcat6/webapps/navalplan/ /tmp/
|
||||||
|
|
||||||
|
* Copy war to Tomcat 6 web applications directory::
|
||||||
|
|
||||||
|
# cp navalplan.war /srv/tomcat6/webapps/
|
||||||
|
|
||||||
|
* Start Tomcat 6::
|
||||||
|
|
||||||
|
# /etc/init.d/tomcat6 start
|
||||||
|
|
||||||
|
* Go to http://localhost:8080/navalplan/
|
||||||
Loading…
Add table
Reference in a new issue