mirror of
https://github.com/aelve/guide.git
synced 2024-11-23 12:15:06 +03:00
7d9d8ec84e
* Make docker and upload * Try to allow failures * Allow failures npm * Or True * Or true * Remove or true * Fix config files * Test cp * Find dist * Fix stage * where is make * Fix cd * Remove checkers * Fix dockerfile * Add env to dockerfile * Comment envs * Set api=localhost * Fix dockerfile and win * Trigger on push |
||
---|---|---|
.. | ||
build | ||
client | ||
types | ||
utils | ||
.editorconfig | ||
.gitignore | ||
babel.config.js | ||
config.js | ||
index.html | ||
package-lock.json | ||
package.json | ||
postcss.config.js | ||
prod.tsconfig.json | ||
README.md | ||
server.ts | ||
tsconfig.json | ||
tslint.json |
Commands
dev
- Start developing environment (starts both server and setup client middleware for server).build
- Builds to /dist folder. Compiles (from ts to js) server right in dist folder, client files compiled in /dist/src.
Deploy process
Node version >= 11, because used fs async methods which experimental now
git pull
npm i
npm run build
set NODE_ENV=production
, also you can specify port byset PORT=%port_number%
andAPI_URL=%api_url%
cd dist
npm i
node server