[python(最简单,但是还是推荐用nginx)]1.cd dist 2.python -m SimpleHTTPServer 3.http://localhost:8000

背景:开发完的h5游戏想快速试一下效果。 尤其是mac下默认安装的有python就很方便。

1)到index.html同级目录

➜  ~ /Users/jianan/Documents/work/sayabc-gamification-demo01-all/MathClassroomH5/Project/IFTTTSample/build/web-mobile

2)启动web服务器

2.x版本

➜  web-mobile git:(master) python -m SimpleHTTPServer
Serving HTTP on 0.0.0.0 port 8000 ...

3.x版本

$ python -m http.server

3)访问 http://localhost:8000

127.0.0.1 - - [07/Jan/2020 18:49:54] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:54] "GET /style-mobile.06efd.css HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:54] "GET /src/settings.d3831.js HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:54] "GET /main.3a466.js HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:54] "GET /splash.03ce1.png HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:54] "GET /cocos2d-js-min.b87ff.js HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /src/project.c6923.js HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/import/01/0144036f5.08368.json HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] code 404, message File not found
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /favicon.ico HTTP/1.1" 404 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/import/4b/4bbd0200-20cc-4038-8329-dda9073a7bcf.ecd82.json HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-internal/image/default_sprite_splash.cea68.png HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/loading/ppp.0b92c.png HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/loading/fff.bb91f.png HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/loading/ccc.ca417.png HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/import/09/098341a76.45343.json HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/import/02/02c7638d4.6b0b5.json HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/Texture/U6L1_GamePage_03/tex.4c13c.png HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/import/2e/2e56ae35-a6a4-4350-bf06-3bdc61a5f9c5.7b058.json HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/Texture/U6L2_GamePage_01/tex.f84cc.png HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-internal/image/default_btn_normal.1ecb7.png HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-internal/image/default_btn_pressed.bedf4.png HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-internal/image/default_btn_disabled.286c6.png HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/Texture/U6L1L2_interface/tex.29f65.png HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/Texture/U6L1L2_Money/tex.e9044.png HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/Animation/U6L1L2/hippo/hippo.9f232.atlas HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/Animation/U6L1L2/hippo/hippo.eac35.png HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/Spine/U5L1L2/win/shengli.0bdb5.atlas HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/Spine/U5L1L2/win/shengli.18c4b.png HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-internal/image/default_toggle_normal.0791d.png HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/Texture/button_bg.752ec.png HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-internal/image/default_toggle_checkmark.1fc57.png HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/Texture/GamePage_skip/tex.972f7.png HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/Texture/Common/singleColor.e5136.png HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/Sound/CommonSkip/pig01.d4d9d.mp3 HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/Sound/CommonSkip/pig02.47250.mp3 HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/Spine/CommonSkip/Pig_front.a680e.atlas HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/Spine/CommonSkip/victory.c2651.atlas HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/Spine/CommonSkip/Pig_front.e3333.png HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/Spine/CommonSkip/victory.77f20.png HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/Sound/short_tap.a9788.mp3 HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/Texture/HomeWork/tex.61fd0.png HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/Spine/homework/page_button.ca58b.atlas HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/Spine/homework/page_button.63829.png HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/Sound/U2L5_GamePage_01/homework05/hint_a1.3098c.mp3 HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/Sound/U2L5_GamePage_01/homework05/51.572de.mp3 HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-internal/particle/atom.ca868.plist HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/Spine/FireWork/fireworks/fireworks3/tri3.187a0.atlas HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/Spine/FireWork/fireworks/fireworks4/tri4.cf704.atlas HTTP/1.1" 200 -
127.0.0.1 - - [07/Jan/2020 18:49:55] "GET /res/raw-assets/Spine/FireWork/fireworks/fireworks2/tri2.7b1d4.atlas HTTP/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值