... | ... | @@ -36,5 +36,44 @@ In this tutorial, you build a web app that places a model in the real world usin |
|
|
|
|
|
# **Step 1 - Server**
|
|
|
|
|
|
## :flag_de: Was ist AR?
|
|
|
## :flag_us: What is AR? |
|
|
## :flag_de:
|
|
|
Um Ihre AR-Web-App hosten zu können, benötigen Sie einen Server mit https-Unterstützung. Sie können die HfT GitLab-Seiten verwenden, dafür folgen Sie bitte dem Tutorial und führen Sie die folgenden Änderungen wie beschrieben durch.
|
|
|
|
|
|
Nachdem Sie das Projekt erstellt haben, ist es wichtig, geringfügige Änderungen an der **.gitlab-ci.yml** vorzunehmen, damit die Website ordnungsgemäß funktioniert. Sie können die Funktion Im **Pipeline-Editor** bearbeiten verwenden, die in blauer Farbe angezeigt wird. Die finale Datei sollte wie folgt aussehen:
|
|
|
```
|
|
|
image: alpine:latest
|
|
|
|
|
|
stages:
|
|
|
- deploy
|
|
|
|
|
|
pages:
|
|
|
stage: deploy
|
|
|
script:
|
|
|
- echo "deploy to https://transfer.hft-stuttgart.de/pages/$CI_PROJECT_PATH/"
|
|
|
artifacts:
|
|
|
paths:
|
|
|
- public
|
|
|
only:
|
|
|
- master
|
|
|
```
|
|
|
## :flag_us:
|
|
|
In order to host your AR web app you will need a server with https support. You can use the HfT Gitlab pages, for that please follow the tutorial and make the changes as described below.
|
|
|
|
|
|
After creating the project, it's important to make minor changes to the **.gitlab-ci.yml** in order for the website to work properly. You can use **Edit in Pipeline editor** function which appears in blue color. The final file should look like this:
|
|
|
|
|
|
```
|
|
|
image: alpine:latest
|
|
|
|
|
|
stages:
|
|
|
- deploy
|
|
|
|
|
|
pages:
|
|
|
stage: deploy
|
|
|
script:
|
|
|
- echo "deploy to https://transfer.hft-stuttgart.de/pages/$CI_PROJECT_PATH/"
|
|
|
artifacts:
|
|
|
paths:
|
|
|
- public
|
|
|
only:
|
|
|
- master
|
|
|
``` |