mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 13:41:23 +00:00
Update sqlite path
This commit is contained in:
@@ -109,13 +109,13 @@ This dockerized environment comes with support for all three databases that Invo
|
|||||||
|
|
||||||
The setup parameters/credentials for each of the supported databases are as follows.
|
The setup parameters/credentials for each of the supported databases are as follows.
|
||||||
|
|
||||||
| | MySQL | PostgreSQL | SQLite |
|
| | MySQL | PostgreSQL | SQLite |
|
||||||
|---|---|---|---|
|
|---|---|---|---------------------------------------|
|
||||||
| **DB_USER** | invoiceshelf | invoiceshelf | Not applicable |
|
| **DB_USER** | invoiceshelf | invoiceshelf | Not applicable |
|
||||||
| **DB_PASS** | invoiceshelf | invoiceshelf | Not applicable |
|
| **DB_PASS** | invoiceshelf | invoiceshelf | Not applicable |
|
||||||
| **DB_NAME** | invoiceshelf | invoiceshelf | /var/www/html/database/database.sqlite |
|
| **DB_NAME** | invoiceshelf | invoiceshelf | /var/www/html/storage/database.sqlite |
|
||||||
| **DB_HOST** | db-mysql | db-pgsql | Not applicable |
|
| **DB_HOST** | db-mysql | db-pgsql | Not applicable |
|
||||||
| **DB_PORT** | 3036 | 5432 | Not applicable |
|
| **DB_PORT** | 3036 | 5432 | Not applicable |
|
||||||
|
|
||||||
**Note:** The only required field for SQLite is **DB_NAME**.
|
**Note:** The only required field for SQLite is **DB_NAME**.
|
||||||
|
|
||||||
@@ -135,11 +135,11 @@ To log into the MySQL or PostgresSQL, use the database information specified in
|
|||||||
|
|
||||||
To log into the SQLite, use the following credentials:
|
To log into the SQLite, use the following credentials:
|
||||||
|
|
||||||
| KEY | VALUE |
|
| KEY | VALUE |
|
||||||
|--------------|---------------------------|
|
|--------------|--------------------------|
|
||||||
| **USERNAME** | admin |
|
| **USERNAME** | admin |
|
||||||
| **PASSWORD** | admin |
|
| **PASSWORD** | admin |
|
||||||
| **DATABASE** | /database/database.sqlite |
|
| **DATABASE** | /storage/database.sqlite |
|
||||||
|
|
||||||
|
|
||||||
### 4. Mailpit (fake mail)
|
### 4. Mailpit (fake mail)
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ cp .env.example .env
|
|||||||
if [ "$DB_CONNECTION" = "sqlite" ] || [ -z "$DB_CONNECTION" ]; then
|
if [ "$DB_CONNECTION" = "sqlite" ] || [ -z "$DB_CONNECTION" ]; then
|
||||||
echo "**** Configure SQLite3 database ****"
|
echo "**** Configure SQLite3 database ****"
|
||||||
if [ ! -n "$DB_DATABASE" ]; then
|
if [ ! -n "$DB_DATABASE" ]; then
|
||||||
echo "**** DB_DATABASE not defined. Fall back to default /database/database.sqlite location ****"
|
echo "**** DB_DATABASE not defined. Fall back to default /storage/database.sqlite location ****"
|
||||||
DB_DATABASE='/var/www/html/database/database.sqlite'
|
DB_DATABASE='/var/www/html/storage/database.sqlite'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -e "$DB_DATABASE" ]; then
|
if [ ! -e "$DB_DATABASE" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user