mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Added an hint about installing Part-DB to a subdirectory.
This commit is contained in:
parent
5a86af8552
commit
334a82b0e4
2 changed files with 11 additions and 1 deletions
|
@ -70,8 +70,11 @@ for additional informations.
|
||||||
* Change the line `APP_ENV=dev` to `APP_ENV=prod`
|
* Change the line `APP_ENV=dev` to `APP_ENV=prod`
|
||||||
* Change the value of `DATABASE_URL=` to your needs (see [here](http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url)) for the format.
|
* Change the value of `DATABASE_URL=` to your needs (see [here](http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url)) for the format.
|
||||||
4. Install composer dependencies and generate autoload files: `composer install --no-dev`
|
4. Install composer dependencies and generate autoload files: `composer install --no-dev`
|
||||||
|
6. If you have put Part-DB into a sub-directory on your server (like `part-db/`), you have to edit the file
|
||||||
|
`webpack.config.js` and uncomment the lines (remove the `//` before the lines) `.setPublicPath('/part-db/build')` (line 43) and
|
||||||
|
`.setManifestKeyPrefix('build/')` (line 44). You have to replace `/part-db` with your own path on line 44.
|
||||||
5. Install client side dependencies and build it: `yarn install` and `yarn build`
|
5. Install client side dependencies and build it: `yarn install` and `yarn build`
|
||||||
6. Optional (speeds up first load): Warmup cache: `php bin/console cache:warmup`
|
6. _Optional_ (speeds up first load): Warmup cache: `php bin/console cache:warmup`
|
||||||
7. Upgrade database to new scheme (or create it, when it was empty): `php bin/console doctrine:migrations:migrate` and follow the instructions given. **Caution**: This steps tamper with your database and could potentially destroy it. So make sure to make a backup of your database.
|
7. Upgrade database to new scheme (or create it, when it was empty): `php bin/console doctrine:migrations:migrate` and follow the instructions given. **Caution**: This steps tamper with your database and could potentially destroy it. So make sure to make a backup of your database.
|
||||||
|
|
||||||
When you want to upgrade to a newer version, then just copy the new files into the folder
|
When you want to upgrade to a newer version, then just copy the new files into the folder
|
||||||
|
|
|
@ -36,6 +36,13 @@ Encore
|
||||||
// only needed for CDN's or sub-directory deploy
|
// only needed for CDN's or sub-directory deploy
|
||||||
//.setManifestKeyPrefix('build/')
|
//.setManifestKeyPrefix('build/')
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If you are putting Part-DB into a sub directory you have to uncomment these lines and
|
||||||
|
* replace "part-db/" with your path to Part-DB
|
||||||
|
*/
|
||||||
|
//.setPublicPath('/part-db/build')
|
||||||
|
//.setManifestKeyPrefix('build/')
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ENTRY CONFIG
|
* ENTRY CONFIG
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue