RASCSI/src/web
2021-09-24 13:30:58 -07:00
..
mock/bin Add DaynaPORT config to web 2021-02-01 19:48:56 -06:00
pwa RaSCSI logo favicons (#237) 2021-09-19 14:36:43 -07:00
service-infra Move scsi id reservation management to the backend 2021-09-24 13:30:58 -07:00
static Move to protobuf for the webapp, major overhaul to easyinstall.sh, code comment translations (#229) 2021-09-14 21:51:12 -05:00
templates More descriptive text on index.html 2021-09-24 13:30:58 -07:00
create_disk.py Black code formatting 2021-02-01 11:39:50 -06:00
drive_properties.json Store drive size instead of block number 2021-09-24 13:30:58 -07:00
file_cmds.py Fix saving and loading device params in config files 2021-09-24 13:30:58 -07:00
pi_cmds.py Disk image profile management using a sidecar config file (#242) 2021-09-19 14:29:01 -07:00
ractl_cmds.py Improve error message 2021-09-24 13:30:58 -07:00
README.md Update readme for dev setup of web 2021-05-23 10:55:24 -05:00
requirements.txt Bump point release of four dependencies, then lock down versions again 2021-09-24 13:30:58 -07:00
settings.py Disk image profile management using a sidecar config file (#242) 2021-09-19 14:29:01 -07:00
start.sh Move scsi id reservation management to the backend 2021-09-24 13:30:58 -07:00
web.py Revert granular SCHD detection on the web ui side, since there are a plethora of hard drive image file endings out there 2021-09-24 13:30:58 -07: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