RASCSI/src/web
2021-08-22 21:37:43 +02: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 Refactoring, device handling extensions, additional settings, improved error handling, 64 bit OS support, fixed issues (#184) 2021-08-21 16:45:30 -05:00
create_disk.py Black code formatting 2021-02-01 11:39:50 -06:00
file_cmds.py Fix for issue#197. Also removed the valid file extensions list from web/file_cmds.py since it wasn't used. (#205) 2021-08-22 21:37:43 +02:00
pi_cmds.py Black code formatting 2021-02-01 11:39:50 -06:00
ractl_cmds.py Fix for issue#197. Also removed the valid file extensions list from web/file_cmds.py since it wasn't used. (#205) 2021-08-22 21:37:43 +02:00
README.md Update readme for dev setup of web 2021-05-23 10:55:24 -05:00
requirements.txt Speed up web uploads and various fixes (#158) 2021-07-31 10:52:09 -05:00
settings.py Black code formatting 2021-02-01 11:39:50 -06:00
start.sh Speed up web uploads and various fixes (#158) 2021-07-31 10:52:09 -05:00
web.py Fix for issue#197. Also removed the valid file extensions list from web/file_cmds.py since it wasn't used. (#205) 2021-08-22 21:37:43 +02: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