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 摘要。