mirror of
https://github.com/pterodactyl/documentation.git
synced 2025-12-10 21:05:59 -06:00
Update panel.md (#336)
This commit is contained in:
parent
4651921697
commit
7dce241af9
@ -17,11 +17,11 @@ The build tools require NodeJS, yarn is used as the package manager.
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Ubuntu/Debian
|
# Ubuntu/Debian
|
||||||
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
|
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
|
||||||
apt install -y nodejs yarn
|
apt install -y nodejs
|
||||||
|
|
||||||
# CentOS
|
# CentOS
|
||||||
curl -sL https://rpm.nodesource.com/setup_12.x | sudo -E bash -
|
curl -sL https://rpm.nodesource.com/setup_14.x | sudo -E bash -
|
||||||
sudo yum install -y nodejs yarn # CentOS 7
|
sudo yum install -y nodejs yarn # CentOS 7
|
||||||
sudo dnf install -y nodejs yarn # CentOS 8
|
sudo dnf install -y nodejs yarn # CentOS 8
|
||||||
```
|
```
|
||||||
@ -29,6 +29,8 @@ sudo dnf install -y nodejs yarn # CentOS 8
|
|||||||
Install required javascript packages.
|
Install required javascript packages.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
npm i -g yarn # Install Yarn
|
||||||
|
|
||||||
cd /var/www/pterodactyl
|
cd /var/www/pterodactyl
|
||||||
yarn # Installs panel build dependencies
|
yarn # Installs panel build dependencies
|
||||||
```
|
```
|
||||||
@ -41,3 +43,5 @@ The following command will rebuild the Panel frontend.
|
|||||||
cd /var/www/pterodactyl
|
cd /var/www/pterodactyl
|
||||||
yarn build:production # Build panel
|
yarn build:production # Build panel
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can use command `yarn run watch` to view the progress of your changes in almost real-time for easier development. Once you're satisfied with your changes build the panel using the previously mentioned `yarn build:production` command.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user