Update readme
This commit is contained in:
parent
5c63894627
commit
052e46c1d7
1 changed files with 22 additions and 7 deletions
29
README.md
29
README.md
|
@ -16,19 +16,34 @@ npm install
|
|||
npx allow-scripts
|
||||
```
|
||||
|
||||
### Compile and minify for production
|
||||
|
||||
Set backend URL:
|
||||
|
||||
```
|
||||
echo "VUE_APP_BACKEND_URL=https://mydomain.tld" > .env.local
|
||||
```
|
||||
|
||||
Or un-set it if both frontend and backend will run on the same URL:
|
||||
|
||||
```
|
||||
echo "VUE_APP_BACKEND_URL=" > .env.local
|
||||
```
|
||||
|
||||
Compile:
|
||||
|
||||
```
|
||||
npm run build
|
||||
```
|
||||
|
||||
## Development
|
||||
|
||||
### Compiles and hot-reloads for development
|
||||
|
||||
```
|
||||
npm start
|
||||
```
|
||||
|
||||
### Compile and minify for production
|
||||
|
||||
```
|
||||
echo "VUE_APP_BACKEND_URL=https://mydomain.tld" > .env.local
|
||||
npm run build
|
||||
```
|
||||
|
||||
### Run your unit tests
|
||||
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue