summaryrefslogtreecommitdiff
path: root/README.md
blob: efcf5d9f5646bfd6d3f5b24c2c85d8d6a4ebd289 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# themanaworld-website

The website of The Mana World, built with Vue and Vue-Cli.


## Project setup
```
yarn install
```

### Compiles and hot-reloads for development
```
yarn serve
```

### Compiles and minifies for production
```
yarn build
```

### Lints and fixes files
```
yarn lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/). The app can also be configured with environment variables. See [Dotenv] for further info.

## Deployment

### Nginx
1. Build in production mode
2. Add a nginx vhost pointing to the `dist` folder as root
3. Rewrite all requests to index.html within a `location` block:
```nginx
	index  index.html;
	try_files $uri $uri/ /index.html;
```

### [Netlify]
1. Set up a new project
	- Build command: `yarn deploy`
	- Publish directory: `dist`

### [Render]
1. Set up a new Web Service
	- Environment: `Static Site`
	- Build command: `yarn deploy`
	- Publish directory: `dist`


[Vue]: https://vuejs.org/
[Dotenv]: https://cli.vuejs.org/guide/mode-and-env.html
[Netlify]: https://www.netlify.com/
[Render]: https://render.com/