RASCSI/src/web
Uwe Seimet 969220565b
Fixed issue with protected devices/media, added IMAGE_FILE_INFO command (#288)
* Fixed issue with attaching protected devices

* Fixed same issue when inserting a file

* Added IMAGE_FILE_INFO command

* rasctl output update

* Added file mode and type

* Datat type update

* Reverted change

* Update web ui for protobuf changes

Co-authored-by: Daniel Markstedt <markstedt@gmail.com>
2021-09-30 10:22:57 -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 Fix language in 502 page 2021-09-24 13:30:59 -07:00
static Hidden help text for each section 2021-09-28 13:39:08 -07:00
templates Merge pull request #281 from akuker/feature_hidden_help 2021-09-29 19:56:48 -05:00
create_disk.py Black code formatting 2021-02-01 11:39:50 -06:00
drive_properties.json Fix DEC vendor strings 2021-09-29 07:07:49 -07:00
file_cmds.py Fixed issue with protected devices/media, added IMAGE_FILE_INFO command (#288) 2021-09-30 10:22:57 -07:00
pi_cmds.py Display available disk space on the Pi 2021-09-24 13:30:59 -07:00
ractl_cmds.py Add more docstrings 2021-09-29 09:48:34 -07:00
README.md Update readme for dev setup of web 2021-05-23 10:55:24 -05:00
requirements.txt Improve error handling of unzip method; clean up unused code 2021-09-24 13:30:59 -07:00
settings.py Feature attach suggestion (#260) 2021-09-25 22:27:43 -05:00
start.sh Move scsi id reservation management to the backend 2021-09-24 13:30:58 -07:00
web.py Feature attach suggestion (#260) 2021-09-25 22:27:43 -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