RASCSI/src/web
2021-05-23 10:55:24 -05:00
..
mock/bin Add DaynaPORT config to web 2021-02-01 19:48:56 -06:00
service-infra Increase nginx timeouts 2021-05-13 12:48:11 -05:00
static New Web Interface (#69) 2020-12-30 19:39:32 -06:00
templates Add DaynaPORT config to web 2021-02-01 19:48:56 -06:00
create_disk.py Black code formatting 2021-02-01 11:39:50 -06:00
file_cmds.py Use truncate instead of dd 2021-05-13 12:22:28 -05:00
pi_cmds.py Black code formatting 2021-02-01 11:39:50 -06:00
ractl_cmds.py Add DaynaPORT config to web 2021-02-01 19:48:56 -06:00
README.md Update readme for dev setup of web 2021-05-23 10:55:24 -05:00
requirements.txt Update to flask 2.0 2021-05-13 12:17:50 -05:00
settings.py Black code formatting 2021-02-01 11:39:50 -06:00
start.sh New Web Interface (#69) 2020-12-30 19:39:32 -06:00
web.py Update to flask 2.0 2021-05-13 12:17:50 -05:00

RaSCSI Web

Setup local dev env

# Make a virtual env named venv
$ python3 -m venv venv
# Use that virtual env in this shell
$ source venv/bin/activate
# Install requirements
$ pip install -r requirements.txt
# Use mocks and a temp dir - start the web server
$ BASE_DIR=/tmp/images/ PATH=$PATH:`pwd`/mock/bin/ python3 web.py

Mocks for local development

You may edit the files under mock/bin to simulate rascsi command responses.

Pushing to the Pi via git

Setup a bare repo on the rascsi

$ ssh pi@rascsi
$ mkdir /home/pi/dev.git && cd /home/pi/dev.git
$ git --bare init
Initialized empty Git repository in /home/pi/dev.git

Locally

$ cd ~/source/RASCSI
$ git remote add pi ssh://pi@rascsi/home/pi/dev.git
$ git push pi master