aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorPitu <[email protected]>2020-05-09 19:21:20 +0900
committerPitu <[email protected]>2020-05-09 19:21:20 +0900
commitc114e59be329fa9ceb8f1f8e79356a0e3afbd1ae (patch)
treea9166ef288e882452815ed1889186f2fda6b2588 /package.json
parentwip: (diff)
downloadhost.fuwn.me-c114e59be329fa9ceb8f1f8e79356a0e3afbd1ae.tar.xz
host.fuwn.me-c114e59be329fa9ceb8f1f8e79356a0e3afbd1ae.zip
Feature:
* Frontend is now served by the API process * Only 1 process spawns for lolisafe to work * Switched frontend from server-side render to static site, now saved in `/dist`
Diffstat (limited to 'package.json')
-rw-r--r--package.json6
1 files changed, 3 insertions, 3 deletions
diff --git a/package.json b/package.json
index 5e53b88..41ad042 100644
--- a/package.json
+++ b/package.json
@@ -10,13 +10,13 @@
},
"main": "src/_scripts/start.js",
"scripts": {
- "setup": "yarn build && node src/setup.js",
- "dev": "nuxt",
+ "setup": "node src/setup.js && yarn build && yarn migrate && yarn seed",
"build": "nuxt build",
+ "start": "cross-env NODE_ENV=production node src/api/structures/Server",
+ "dev": "nuxt",
"migrate": "yarn knex migrate:latest",
"seed": "yarn knex seed:run",
"api": "node src/api/structures/Server",
- "site": "cross-env NODE_ENV=production nuxt start",
"update": "git pull && yarn install && yarn migrate && yarn build && yarn restart",
"restart": "pm2 restart lolisafe-api && pm2 restart lolisafe-website"
},