mirror of
https://github.com/akuker/RASCSI.git
synced 2024-12-02 04:49:24 +00:00
8a3642bf9a
* Making saving and loading config files work with protobuf * Formatted the Status column, and fixed the available ID logic * Updated handling of removed status for devices without image file support * Comment update * Fixed typo * Updated logging * Updated handling of removed status for devices without image file support * Comment update * Fixed typo * Updated logging * Better handling of device status * Updated parameter handling * Updated setting default interfaces * Revert "Updated setting default interfaces" This reverts commit |
||
---|---|---|
.. | ||
mock/bin | ||
pwa | ||
service-infra | ||
static | ||
templates | ||
create_disk.py | ||
file_cmds.py | ||
pi_cmds.py | ||
ractl_cmds.py | ||
README.md | ||
requirements.txt | ||
settings.py | ||
start.sh | ||
web.py |
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