mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-21 19:30:16 +00:00
improved deployment for testing environment
This commit is contained in:
parent
ded23399a9
commit
9397560734
@ -16,3 +16,6 @@ venv/
|
||||
|
||||
# Unneeded graphics
|
||||
assets/*
|
||||
|
||||
# for local testing only
|
||||
testing.sh
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -6,6 +6,3 @@ db.sqlite3
|
||||
|
||||
# frontend fonts
|
||||
*ttf.woff
|
||||
|
||||
# for local testing only
|
||||
testing.sh
|
||||
|
@ -16,6 +16,8 @@ function sync_blackhole {
|
||||
export PASS=$remote_pw
|
||||
|
||||
rsync -a --progress --delete-after \
|
||||
--exclude ".git" \
|
||||
--exclude ".gitignore" \
|
||||
--exclude "**/cache" \
|
||||
--exclude "**/__pycache__/" \
|
||||
--exclude "db.sqlite3" \
|
||||
@ -32,6 +34,8 @@ function sync_test {
|
||||
host="tubearchivist.local"
|
||||
|
||||
rsync -a --progress --delete-after \
|
||||
--exclude ".git" \
|
||||
--exclude ".gitignore" \
|
||||
--exclude "**/cache" \
|
||||
--exclude "**/__pycache__/" \
|
||||
--exclude "db.sqlite3" \
|
||||
@ -42,6 +46,9 @@ function sync_test {
|
||||
ssh "$host" 'docker build -t bbilly1/tubearchivist:latest tubearchivist'
|
||||
ssh "$host" 'docker-compose -f docker/docker-compose.yml up -d'
|
||||
|
||||
ssh "$host" 'docker cp tubearchivist/tubearchivist/testing.sh tubearchivist:/app/testing.sh'
|
||||
ssh "$host" 'docker exec tubearchivist chmod +x /app/testing.sh'
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
9
tubearchivist/testing.sh
Normal file
9
tubearchivist/testing.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
# install debug and testing tools into slim container
|
||||
|
||||
apt update && apt install -y vim htop bmon net-tools iputils-ping procps
|
||||
|
||||
pip install ipython
|
||||
|
||||
##
|
||||
exit 0
|
Loading…
Reference in New Issue
Block a user