mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-30 19:52:20 +01:00
use postgres 9.6 instead of 11
This commit is contained in:
parent
ae368cb496
commit
13c730eaad
@ -1,6 +1,6 @@
|
|||||||
# Changelog Fab Manager
|
# Changelog Fab Manager
|
||||||
|
|
||||||
- Upgraded PostgreSQL from 9.4 to 11
|
- Upgraded PostgreSQL from 9.4 to 9.6
|
||||||
- Optional reCaptcha checkbox in sign-up form
|
- Optional reCaptcha checkbox in sign-up form
|
||||||
- Ability to configure and export the accounting data to the ACD accounting software
|
- Ability to configure and export the accounting data to the ACD accounting software
|
||||||
- Compute the VAT per item in each invoices, instead of globally
|
- Compute the VAT per item in each invoices, instead of globally
|
||||||
|
@ -13,7 +13,7 @@ FabManager is the Fab Lab management solution. It provides a comprehensive, web-
|
|||||||
4. [Setup a development environment](#setup-a-development-environment)<br/>
|
4. [Setup a development environment](#setup-a-development-environment)<br/>
|
||||||
4.1. [General Guidelines](#general-guidelines)<br/>
|
4.1. [General Guidelines](#general-guidelines)<br/>
|
||||||
5. [PostgreSQL](#postgresql)<br/>
|
5. [PostgreSQL](#postgresql)<br/>
|
||||||
5.1. [Install PostgreSQL 9.4](#setup-postgresql)
|
5.1. [Install PostgreSQL 9.6](#setup-postgresql)
|
||||||
6. [ElasticSearch](#elasticsearch)<br/>
|
6. [ElasticSearch](#elasticsearch)<br/>
|
||||||
6.1. [Install ElasticSearch](#setup-elasticsearch)<br/>
|
6.1. [Install ElasticSearch](#setup-elasticsearch)<br/>
|
||||||
6.2. [Rebuild statistics](#rebuild-stats)<br/>
|
6.2. [Rebuild statistics](#rebuild-stats)<br/>
|
||||||
@ -43,7 +43,7 @@ FabManager is a Ruby on Rails / AngularJS web application that runs on the follo
|
|||||||
- Redis 2.8.4+
|
- Redis 2.8.4+
|
||||||
- Sidekiq 3.3.4+
|
- Sidekiq 3.3.4+
|
||||||
- Elasticsearch 5.6
|
- Elasticsearch 5.6
|
||||||
- PostgreSQL 9.4
|
- PostgreSQL 9.6
|
||||||
|
|
||||||
<a name="contributing"></a>
|
<a name="contributing"></a>
|
||||||
## Contributing
|
## Contributing
|
||||||
@ -193,7 +193,7 @@ Optionally, you can use a virtual development environment that relies on Vagrant
|
|||||||
## PostgreSQL
|
## PostgreSQL
|
||||||
|
|
||||||
<a name="setup-postgresql"></a>
|
<a name="setup-postgresql"></a>
|
||||||
### Install PostgreSQL 9.4
|
### Install PostgreSQL 9.6
|
||||||
|
|
||||||
We will use docker to easily install the required version of PostgreSQL.
|
We will use docker to easily install the required version of PostgreSQL.
|
||||||
|
|
||||||
@ -208,7 +208,7 @@ We will use docker to easily install the required version of PostgreSQL.
|
|||||||
-v $(pwd)/.docker/postgresql:/var/lib/postgresql/data \
|
-v $(pwd)/.docker/postgresql:/var/lib/postgresql/data \
|
||||||
--network fabmanager --ip 172.18.0.2 \
|
--network fabmanager --ip 172.18.0.2 \
|
||||||
-p 5432:5432 \
|
-p 5432:5432 \
|
||||||
postgres:9.4
|
postgres:9.6
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Configure fab-manager to use it.
|
3. Configure fab-manager to use it.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## Automatic upgrade
|
## Automatic upgrade
|
||||||
|
|
||||||
Fab-manager release 4.2.0 has upgraded its dependency to PostgreSQL from version 9.4 to version 11 as the previous won't be maintained from from february 2020.
|
Fab-manager release 4.2.0 has upgraded its dependency to PostgreSQL from version 9.4 to version 9.6 as the previous won't be maintained from from february 2020.
|
||||||
To keep using fab-manager you need to upgrade your installation with the new version.
|
To keep using fab-manager you need to upgrade your installation with the new version.
|
||||||
We've wrote a script to automate the process while keeping your data integrity, but there's some requirements to understand before running it.
|
We've wrote a script to automate the process while keeping your data integrity, but there's some requirements to understand before running it.
|
||||||
|
|
||||||
@ -25,4 +25,4 @@ cd /apps/fabmanager
|
|||||||
|
|
||||||
For instructions regarding a manual upgrade, please refer to the official documentation:
|
For instructions regarding a manual upgrade, please refer to the official documentation:
|
||||||
|
|
||||||
- https://www.postgresql.org/docs/11/upgrading.html
|
- https://www.postgresql.org/docs/9.6/upgrading.html
|
||||||
|
@ -23,7 +23,7 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:9.4
|
image: postgres:9.6
|
||||||
volumes:
|
volumes:
|
||||||
- ${PWD}/postgresql:/var/lib/postgresql/data
|
- ${PWD}/postgresql:/var/lib/postgresql/data
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -93,7 +93,7 @@ pg_upgrade()
|
|||||||
{
|
{
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
-v "$PG_PATH:/var/lib/postgresql/$OLD/data" \
|
-v "$PG_PATH:/var/lib/postgresql/$OLD/data" \
|
||||||
-v "$PG_PATH-$NEW:/var/lib/postgresql/$NEW/data" \
|
-v "$NEW_PATH:/var/lib/postgresql/$NEW/data" \
|
||||||
"tianon/postgres-upgrade:$OLD-to-$NEW" --link
|
"tianon/postgres-upgrade:$OLD-to-$NEW" --link
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -129,7 +129,7 @@ upgrade_postgres()
|
|||||||
if [[ "$confirm" = "y" ]]
|
if [[ "$confirm" = "y" ]]
|
||||||
then
|
then
|
||||||
OLD='9.4'
|
OLD='9.4'
|
||||||
NEW='11'
|
NEW='9.6'
|
||||||
read_path
|
read_path
|
||||||
test_free_space
|
test_free_space
|
||||||
prepare_path
|
prepare_path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user