amethyst / amethyst/rustrogueliketutorial

1. Building for the web (hosting suggestion)

未关闭
#215 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
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 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。