Adding all last updates to repo
Please add and commit when you change someting!
This commit is contained in:
@@ -14,7 +14,7 @@ Alternativ kannst du dich per ssh mit dem Server verbinden, dazu in deine ~/.ssh
|
||||
Wenn du kein Linux haben solltest google "Proxycommand Windows".
|
||||
|
||||
:::bash
|
||||
Host andisgeheimemaschine #ANDIS ich kenn die VM nicht
|
||||
Host 192.168.86.139 #vom Sputnik aus
|
||||
ProxyCommand ssh peter@sputnik.htu.tuwien.ac.at -W %h:%p
|
||||
|
||||
|
||||
|
||||
@@ -15,4 +15,6 @@ Aktivieren einer viruellen Python3 Umgebung.
|
||||
www@fetsite:/srv/test_1$ python3 -m venv .env
|
||||
www@fetsite:/srv/test_1$ activate
|
||||
(.env) www@fetsite:/srv/test_1$
|
||||
Ab jetzt sollte die Zeile im Terminal beginnen mit (.env).
|
||||
www@fetsite:/srv/test_1$ python3 -m pip install flask
|
||||
Ab jetzt sollte die Zeile im Terminal beginnen mit (.env).
|
||||
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
title: 1.3 Hello World mit Flask
|
||||
Erstelle eine kleine Python Datei, zB test.py mit dem Inhalt:
|
||||
|
||||
:::bash
|
||||
vim test.py
|
||||
|
||||
:::python
|
||||
from flask import Flask
|
||||
app = Flask(__name__)
|
||||
|
||||
@@ -1 +1,28 @@
|
||||
title: "1.4 Git aktivieren"
|
||||
|
||||
## Erstellen eines gits
|
||||
|
||||
Erstelle ein git repository in deinem Ordner.
|
||||
|
||||
:::bash
|
||||
www@fetsite:/srv/pet1$ git init
|
||||
www@fetsite:/srv/pet1$ git config --global user.email "pet@fet.at"
|
||||
www@fetsite:/srv/pet1$ git config --global user.name "Peter"
|
||||
|
||||
## Erster commit
|
||||
|
||||
Mach einen commit, diese schritte wiederholen sich jedes mal wenn du einen commit machen willst.
|
||||
|
||||
:::bash
|
||||
www@fetsite:/srv/pet1$ git stage *
|
||||
www@fetsite:/srv/pet1$ git commit -m "first commit"
|
||||
|
||||
## Configuriere remote (optional)
|
||||
|
||||
Wenn du willst kannst du unter [git.fet.at](https://git.fet.at) ein remote repo erstellen und einrichten.
|
||||
|
||||
:::bash
|
||||
#Either specify the URL from the command-line or configure a remote repository using
|
||||
www@fetsite:/srv/pet1$ git remote add <name> <url>
|
||||
#and then push using the remote name
|
||||
www@fetsite:/srv/pet1$ git push <name>
|
||||
|
||||
Reference in New Issue
Block a user