2021-07-21 17:35:45 +08:00
|
|
|
# Dev configurations
|
|
|
|
|
2021-07-09 18:28:29 +08:00
|
|
|
.env.development
|
|
|
|
|
2021-07-21 17:35:45 +08:00
|
|
|
```env
|
2021-07-09 18:28:29 +08:00
|
|
|
SSH_KEY_PATH='~/.ssh/id_rsa'
|
|
|
|
SSH_REMOTE_HOST='root@8.8.8.8'
|
|
|
|
SSH_REMOTE_WORK_DIR='/var/www/html/wp-contents/themes/sakura-next'
|
|
|
|
```
|
2021-07-21 17:35:45 +08:00
|
|
|
|
|
|
|
add this rewrite rule to Nginx:
|
|
|
|
|
|
|
|
```nginx
|
|
|
|
location /src/assets {
|
|
|
|
rewrite ^/(.*)$ http://localhost:9000/$1 redirect;
|
|
|
|
}
|
|
|
|
```
|
2021-09-15 10:32:14 +08:00
|
|
|
|
|
|
|
> Error: spawn C:\..\node_modules\esbuild\esbuild.exe ENOENT
|
|
|
|
|
|
|
|
```bash
|
|
|
|
node ./node_modules/esbuild/install.js
|
|
|
|
```
|
|
|
|
|
|
|
|
ref: <https://github.com/vitejs/vite/issues/1361>
|