amethyst / amethyst/rustrogueliketutorial
1. Building for the web (hosting suggestion)
- Ngôn ngữ chính
- Rust
- Star
- 970
- Fork
- 166
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
@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.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.