mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-05-27 21:54:54 +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.
|
||||
|
||||
| | MySQL | PostgreSQL | SQLite |
|
||||
|---|---|---|---|
|
||||
| **DB_USER** | invoiceshelf | invoiceshelf | Not applicable |
|
||||
| **DB_PASS** | invoiceshelf | invoiceshelf | Not applicable |
|
||||
| **DB_NAME** | invoiceshelf | invoiceshelf | /var/www/html/database/database.sqlite |
|
||||
| **DB_HOST** | db-mysql | db-pgsql | Not applicable |
|
||||
| **DB_PORT** | 3036 | 5432 | Not applicable |
|
||||
| | MySQL | PostgreSQL | SQLite |
|
||||
|---|---|---|---------------------------------------|
|
||||
| **DB_USER** | invoiceshelf | invoiceshelf | Not applicable |
|
||||
| **DB_PASS** | invoiceshelf | invoiceshelf | Not applicable |
|
||||
| **DB_NAME** | invoiceshelf | invoiceshelf | /var/www/html/storage/database.sqlite |
|
||||
| **DB_HOST** | db-mysql | db-pgsql | Not applicable |
|
||||
| **DB_PORT** | 3036 | 5432 | Not applicable |
|
||||
|
||||
**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:
|
||||
|
||||
| KEY | VALUE |
|
||||
|--------------|---------------------------|
|
||||
| **USERNAME** | admin |
|
||||
| **PASSWORD** | admin |
|
||||
| **DATABASE** | /database/database.sqlite |
|
||||
| KEY | VALUE |
|
||||
|--------------|--------------------------|
|
||||
| **USERNAME** | admin |
|
||||
| **PASSWORD** | admin |
|
||||
| **DATABASE** | /storage/database.sqlite |
|
||||
|
||||
|
||||
### 4. Mailpit (fake mail)
|
||||
|
||||
@@ -22,8 +22,8 @@ cp .env.example .env
|
||||
if [ "$DB_CONNECTION" = "sqlite" ] || [ -z "$DB_CONNECTION" ]; then
|
||||
echo "**** Configure SQLite3 database ****"
|
||||
if [ ! -n "$DB_DATABASE" ]; then
|
||||
echo "**** DB_DATABASE not defined. Fall back to default /database/database.sqlite location ****"
|
||||
DB_DATABASE='/var/www/html/database/database.sqlite'
|
||||
echo "**** DB_DATABASE not defined. Fall back to default /storage/database.sqlite location ****"
|
||||
DB_DATABASE='/var/www/html/storage/database.sqlite'
|
||||
fi
|
||||
|
||||
if [ ! -e "$DB_DATABASE" ]; then
|
||||
|
||||
Reference in New Issue
Block a user