/phaser-game

Primary LanguageJavaScript

Phaser-game

Node dev

npm/yarn install      # install

npm run dev           # dev                          http://localhost:8001
npm run build         # build                        http://localhost:9001
npm run buildServer   # build with preview           http://localhost:9001

npm run dStart        # run dev use docker           http://localhost:8000
npm run dBuild        # run build use docker         
npm run dBuildServer  # run buildServer use docker   http://localhost:9000

Docker dev

# Build an image [vue-multi-page] from a Dockerfile
docker build -t vue-multi-page .
# npm install --production   // update   dependencies

docker run -it -rm -v ${PWD}:/usr/src/app -p 8000:8001 [-p 9000:9001] --name example  vue-multi-page [sh]

# Container {{name}} is running, else docker start {{name}}
docker exec -it {{name}} 进入容器
docker exec {{name}} npm run start
docker exec {{name}} npm run build