Rename database to use LibrePlan in its name
FEA: ItEr75S03CommunityMaterial
This commit is contained in:
parent
2c21a0913e
commit
cf672f12a2
5 changed files with 37 additions and 37 deletions
42
HACKING
42
HACKING
|
|
@ -64,11 +64,11 @@ Debian/Ubuntu
|
||||||
|
|
||||||
* Use SQL sentences::
|
* Use SQL sentences::
|
||||||
|
|
||||||
CREATE DATABASE navaldev;
|
CREATE DATABASE libreplandev;
|
||||||
CREATE DATABASE navaldevtest;
|
CREATE DATABASE libreplandevtest;
|
||||||
CREATE USER naval WITH PASSWORD 'naval';
|
CREATE USER libreplan WITH PASSWORD 'libreplan';
|
||||||
GRANT ALL PRIVILEGES ON DATABASE navaldev TO naval;
|
GRANT ALL PRIVILEGES ON DATABASE libreplandev TO libreplan;
|
||||||
GRANT ALL PRIVILEGES ON DATABASE navaldevtest TO naval;
|
GRANT ALL PRIVILEGES ON DATABASE libreplandevtest TO libreplan;
|
||||||
|
|
||||||
* Download source code::
|
* Download source code::
|
||||||
|
|
||||||
|
|
@ -103,11 +103,11 @@ Fedora
|
||||||
|
|
||||||
* Use SQL sentences::
|
* Use SQL sentences::
|
||||||
|
|
||||||
CREATE DATABASE navaldev;
|
CREATE DATABASE libreplandev;
|
||||||
CREATE DATABASE navaldevtest;
|
CREATE DATABASE libreplandevtest;
|
||||||
CREATE USER naval WITH PASSWORD 'naval';
|
CREATE USER libreplan WITH PASSWORD 'libreplan';
|
||||||
GRANT ALL PRIVILEGES ON DATABASE navaldev TO naval;
|
GRANT ALL PRIVILEGES ON DATABASE libreplandev TO libreplan;
|
||||||
GRANT ALL PRIVILEGES ON DATABASE navaldevtest TO naval;
|
GRANT ALL PRIVILEGES ON DATABASE libreplandevtest TO libreplan;
|
||||||
|
|
||||||
* Set ``postgres`` user password::
|
* Set ``postgres`` user password::
|
||||||
|
|
||||||
|
|
@ -163,11 +163,11 @@ openSUSE
|
||||||
|
|
||||||
* Use SQL sentences::
|
* Use SQL sentences::
|
||||||
|
|
||||||
CREATE DATABASE navaldev;
|
CREATE DATABASE libreplandev;
|
||||||
CREATE DATABASE navaldevtest;
|
CREATE DATABASE libreplandevtest;
|
||||||
CREATE USER naval WITH PASSWORD 'naval';
|
CREATE USER libreplan WITH PASSWORD 'libreplan';
|
||||||
GRANT ALL PRIVILEGES ON DATABASE navaldev TO naval;
|
GRANT ALL PRIVILEGES ON DATABASE libreplandev TO libreplan;
|
||||||
GRANT ALL PRIVILEGES ON DATABASE navaldevtest TO naval;
|
GRANT ALL PRIVILEGES ON DATABASE libreplandevtest TO libreplan;
|
||||||
|
|
||||||
* Set ``postgres`` user password::
|
* Set ``postgres`` user password::
|
||||||
|
|
||||||
|
|
@ -275,11 +275,11 @@ profiles defined in ``pom.xml`` of business and webapp modules).
|
||||||
|
|
||||||
* *dev* - Development environment (default)
|
* *dev* - Development environment (default)
|
||||||
|
|
||||||
It uses databases ``navaldev`` and ``navaldevtest``.
|
It uses databases ``libreplandev`` and ``libreplandevtest``.
|
||||||
|
|
||||||
* *prod* - Production environment
|
* *prod* - Production environment
|
||||||
|
|
||||||
Unlike *dev* it uses database ``navalprod`` and `navalprodtest``.
|
Unlike *dev* it uses database ``libreplanprod`` and `libreplanprodtest``.
|
||||||
|
|
||||||
It is needed to use it in combination with *postgresql* or *mysql* profiles.
|
It is needed to use it in combination with *postgresql* or *mysql* profiles.
|
||||||
|
|
||||||
|
|
@ -361,10 +361,10 @@ For MySQL users here are specific instructions.
|
||||||
|
|
||||||
* SQL sentences to create database::
|
* SQL sentences to create database::
|
||||||
|
|
||||||
CREATE DATABASE navaldev;
|
CREATE DATABASE libreplandev;
|
||||||
CREATE DATABASE navaldevtest;
|
CREATE DATABASE libreplandevtest;
|
||||||
GRANT ALL ON navaldev.* to 'naval'@'localhost' identified by 'naval';
|
GRANT ALL ON libreplandev.* to 'libreplan'@'localhost' identified by 'libreplan';
|
||||||
GRANT ALL ON navaldevtest.* to 'naval'@'localhost' identified by 'naval';
|
GRANT ALL ON libreplandevtest.* to 'libreplan'@'localhost' identified by 'libreplan';
|
||||||
|
|
||||||
* Compile project::
|
* Compile project::
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,9 +44,9 @@ work as ``.zul`` page still does not exist.
|
||||||
If you want to run LibrePlan in development mode you need to follow the next
|
If you want to run LibrePlan in development mode you need to follow the next
|
||||||
instructions:
|
instructions:
|
||||||
|
|
||||||
* Create a PostgreSQL database called ``navaldev`` with permissions for a
|
* Create a PostgreSQL database called ``libreplandev`` with permissions for a
|
||||||
user ``naval`` with password ``naval`` (see ``INSTALL`` file for other
|
user ``libreplan`` with password ``libreplan`` (see ``INSTALL`` file for
|
||||||
databases and more info).
|
other databases and more info).
|
||||||
|
|
||||||
* Compile LibrePlan with the following command from project root folder::
|
* Compile LibrePlan with the following command from project root folder::
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -82,9 +82,9 @@ this behaviour and use it in all the tasks they want.
|
||||||
If you want to run LibrePlan in development mode you need to follow the next
|
If you want to run LibrePlan in development mode you need to follow the next
|
||||||
instructions:
|
instructions:
|
||||||
|
|
||||||
* Create a PostgreSQL database called ``navaldev`` with permissions for a
|
* Create a PostgreSQL database called ``libreplandev`` with permissions for a
|
||||||
user ``naval`` with password ``naval`` (see ``HACKING`` file for other
|
user ``libreplan`` with password ``libreplan`` (see ``HACKING`` file for
|
||||||
databases and more info).
|
other databases and more info).
|
||||||
|
|
||||||
* Compile LibrePlan with the following command from project root folder::
|
* Compile LibrePlan with the following command from project root folder::
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,9 @@ $ sudo apt-get install postgresql
|
||||||
$ sudo su -c "psql" postgres
|
$ sudo su -c "psql" postgres
|
||||||
|
|
||||||
<----------------- Executar os seguintes comandos SQL ----------
|
<----------------- Executar os seguintes comandos SQL ----------
|
||||||
create database navaldev;
|
create database libreplandev;
|
||||||
create user naval with password 'naval';
|
create user libreplan with password 'libreplan';
|
||||||
grant all privileges on database navaldev to naval;
|
grant all privileges on database libreplandev to libreplan;
|
||||||
\q
|
\q
|
||||||
------------------------------------------------------------------
|
------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
@ -40,9 +40,9 @@ para permitir o acceso a base de datos
|
||||||
<Resource name="jdbc/libreplan-ds" auth="Container"
|
<Resource name="jdbc/libreplan-ds" auth="Container"
|
||||||
type="javax.sql.DataSource"
|
type="javax.sql.DataSource"
|
||||||
maxActive="100" maxIdle="30" maxWait="10000"
|
maxActive="100" maxIdle="30" maxWait="10000"
|
||||||
username="naval" password="naval"
|
username="libreplan" password="libreplan"
|
||||||
driverClassName="org.postgresql.Driver"
|
driverClassName="org.postgresql.Driver"
|
||||||
url="jdbc:postgresql://localhost/navaldev"/>
|
url="jdbc:postgresql://localhost/libreplandev"/>
|
||||||
...
|
...
|
||||||
</Context>
|
</Context>
|
||||||
---------------------- ---------------------------------------
|
---------------------- ---------------------------------------
|
||||||
|
|
@ -96,4 +96,4 @@ Neste intre a aplicación debería estar accesible en : http://localhost:8080/li
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
Se quixeramos facer un volcado da base de datos so precisariamos empregar o seguinte comando, isto non é necesario para a instalación.
|
Se quixeramos facer un volcado da base de datos so precisariamos empregar o seguinte comando, isto non é necesario para a instalación.
|
||||||
|
|
||||||
$ pg_dump -h localhost -U naval -c -F p -v -f bdxestionproducion.dump navaldev
|
$ pg_dump -h localhost -U libreplan -c -F p -v -f bdxestionproducion.dump libreplandev
|
||||||
|
|
|
||||||
8
pom.xml
8
pom.xml
|
|
@ -28,8 +28,8 @@
|
||||||
-->
|
-->
|
||||||
<properties>
|
<properties>
|
||||||
<!-- Data source properties -->
|
<!-- Data source properties -->
|
||||||
<dataSource.user>naval</dataSource.user>
|
<dataSource.user>libreplan</dataSource.user>
|
||||||
<dataSource.password>naval</dataSource.password>
|
<dataSource.password>libreplan</dataSource.password>
|
||||||
<dataSource.jndiName>jdbc/libreplan-ds</dataSource.jndiName>
|
<dataSource.jndiName>jdbc/libreplan-ds</dataSource.jndiName>
|
||||||
<testDataSource.user>${dataSource.user}</testDataSource.user>
|
<testDataSource.user>${dataSource.user}</testDataSource.user>
|
||||||
<testDataSource.password>${dataSource.password}</testDataSource.password>
|
<testDataSource.password>${dataSource.password}</testDataSource.password>
|
||||||
|
|
@ -113,7 +113,7 @@
|
||||||
<jdbcDriver.version>8.3-603.jdbc4</jdbcDriver.version>
|
<jdbcDriver.version>8.3-603.jdbc4</jdbcDriver.version>
|
||||||
<jdbcDriver.className>org.postgresql.Driver</jdbcDriver.className>
|
<jdbcDriver.className>org.postgresql.Driver</jdbcDriver.className>
|
||||||
<!-- Data source properties -->
|
<!-- Data source properties -->
|
||||||
<dataSource.url>jdbc:postgresql://localhost/naval${libreplan.mode}</dataSource.url>
|
<dataSource.url>jdbc:postgresql://localhost/libreplan${libreplan.mode}</dataSource.url>
|
||||||
<testDataSource.url>${dataSource.url}test</testDataSource.url>
|
<testDataSource.url>${dataSource.url}test</testDataSource.url>
|
||||||
<!-- Hibernate properties -->
|
<!-- Hibernate properties -->
|
||||||
<hibernate.dialect>org.hibernate.dialect.PostgreSQLDialect</hibernate.dialect>
|
<hibernate.dialect>org.hibernate.dialect.PostgreSQLDialect</hibernate.dialect>
|
||||||
|
|
@ -131,7 +131,7 @@
|
||||||
<jdbcDriver.version>5.0.5</jdbcDriver.version>
|
<jdbcDriver.version>5.0.5</jdbcDriver.version>
|
||||||
<jdbcDriver.className>com.mysql.jdbc.Driver</jdbcDriver.className>
|
<jdbcDriver.className>com.mysql.jdbc.Driver</jdbcDriver.className>
|
||||||
<!-- Data source properties -->
|
<!-- Data source properties -->
|
||||||
<dataSource.url>jdbc:mysql://localhost/naval${libreplan.mode}</dataSource.url>
|
<dataSource.url>jdbc:mysql://localhost/libreplan${libreplan.mode}</dataSource.url>
|
||||||
<testDataSource.url>${dataSource.url}test</testDataSource.url>
|
<testDataSource.url>${dataSource.url}test</testDataSource.url>
|
||||||
<!-- Hibernate properties -->
|
<!-- Hibernate properties -->
|
||||||
<hibernate.dialect>org.hibernate.dialect.MySQL5InnoDBDialect</hibernate.dialect>
|
<hibernate.dialect>org.hibernate.dialect.MySQL5InnoDBDialect</hibernate.dialect>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue