amethyst / amethyst/rustrogueliketutorial
1. Building for the web (hosting suggestion)
未关闭
- 主要语言
- Rust
- 星标
- 970
- 派生
- 166
- PR 合并指标
- 30 天内没有已合并 PR
描述
@thebracket You make a request on the [first section](https://bfnightly.bracketproductions.com/webbuild.html) to recommend local hosting options. I used a docker image and hosted there. For example:
```Dockerfile
# project_root/Dockerfile
FROM ubuntu
RUN apt-get update
RUN apt-get install nginx -y
COPY wasm/* /var/www/html/
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
```
```bash
# project_root
docker build -t local-wasm-host .
docker run -d -p 8000:80 --name local-wasm-host local-wasm-host
```
Open a browser to http://localhost:8000 and I think it works. I'm just starting the tutorial though so don't have anything showing yet.
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。