mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 07:33:17 +00:00
Add doc
This commit is contained in:
parent
7564cc031a
commit
858959b7d2
@ -25,6 +25,25 @@ By default, the administration panel is exposed via [http://localhost:1337/admin
|
||||
}
|
||||
```
|
||||
|
||||
## Change the host
|
||||
|
||||
By default, the administration panel client host name is `localhost`. However, you can change this setting by updating the `admin` configuration:
|
||||
|
||||
**Path —** `./config/environment/**/server.json`.
|
||||
|
||||
```json
|
||||
{
|
||||
"host": "localhost",
|
||||
"port": 1337,
|
||||
"cron": {
|
||||
"enabled": false
|
||||
},
|
||||
"admin": {
|
||||
"host": "my-host"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
The panel will be available through [http://localhost:1337/dashboard](http://localhost:1337/dashboard) with the configurations above.
|
||||
|
||||
## Development mode
|
||||
@ -170,6 +189,25 @@ Add the following configuration:
|
||||
export const SHOW_TUTORIALS = false;
|
||||
```
|
||||
|
||||
### Changing the port
|
||||
|
||||
By default, the front-development server runs on the `8000` port. However, you can change this setting by updating the following configuration:
|
||||
|
||||
**Path —** `./config/environment/**/server.json`.
|
||||
|
||||
```json
|
||||
{
|
||||
"host": "localhost",
|
||||
"port": 1337,
|
||||
"cron": {
|
||||
"enabled": false
|
||||
},
|
||||
"admin": {
|
||||
"port": 3000
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Build
|
||||
|
||||
To build the administration, run the following command from the root directory of your project.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user