Skip to content

Commit ff89433

Browse files
committed
Introducing Sentient Cloud (merging current staging codebase into master)
2 parents a324179 + d1e9d51 commit ff89433

File tree

400 files changed

+20848
-58340
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

400 files changed

+20848
-58340
lines changed

.github/workflows/deploy-dev.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# .github/workflows/deploy-stag.yaml
2+
name: Deploy to development VM
3+
4+
on:
5+
# This section defines when the workflow will run.
6+
push:
7+
branches:
8+
- development # Trigger on every push to the "development" branch.
9+
10+
jobs:
11+
deploy:
12+
# The job will run on a fresh virtual machine provided by GitHub.
13+
runs-on: ubuntu-latest
14+
steps:
15+
# This is the main step that does the work.
16+
- name: Deploy over SSH
17+
# It uses a pre-made Action from the community to simplify SSH.
18+
uses: appleboy/ssh-action@master
19+
with:
20+
# These values are securely pulled from your GitHub Secrets.
21+
host: ${{ secrets.DEV_VM_HOST }}
22+
username: ${{ secrets.DEV_VM_USER }}
23+
key: ${{ secrets.DEV_VM_SSH_PRIVATE_KEY }}
24+
25+
# This is the script that the Action will run on your VM.
26+
script: |
27+
# Change to your project's directory on the VM.
28+
cd ~/sentient
29+
30+
# Pull the latest changes from the development branch on GitHub.
31+
git pull origin development
32+
33+
# Navigate into the server directory where your docker-compose file is.
34+
cd src/server
35+
36+
# Stop and remove the old containers.
37+
docker compose down
38+
39+
# Build new images if the Dockerfile has changed, and start the new containers in the background.
40+
docker compose up --build -d

.github/workflows/deploy-stag.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# .github/workflows/deploy-stag.yaml
2+
name: Deploy to Staging VM
3+
4+
on:
5+
# This section defines when the workflow will run.
6+
push:
7+
branches:
8+
- staging # Trigger on every push to the "staging" branch.
9+
10+
jobs:
11+
deploy:
12+
# The job will run on a fresh virtual machine provided by GitHub.
13+
runs-on: ubuntu-latest
14+
steps:
15+
# This is the main step that does the work.
16+
- name: Deploy over SSH
17+
# It uses a pre-made Action from the community to simplify SSH.
18+
uses: appleboy/ssh-action@master
19+
with:
20+
# These values are securely pulled from your GitHub Secrets.
21+
host: ${{ secrets.STAG_VM_HOST }}
22+
username: ${{ secrets.STAG_VM_USER }}
23+
key: ${{ secrets.STAG_VM_SSH_PRIVATE_KEY }}
24+
25+
# This is the script that the Action will run on your VM.
26+
script: |
27+
# Change to your project's directory on the VM.
28+
cd ~/sentient
29+
30+
# Pull the latest changes from the staging branch on GitHub.
31+
git pull origin staging
32+
33+
# Navigate into the server directory where your docker-compose file is.
34+
cd src/server
35+
36+
# Stop and remove the old containers.
37+
docker-compose down
38+
39+
# Build new images if the Dockerfile has changed, and start the new containers in the background.
40+
docker-compose up --build -d

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
credentials.json
2+
workspace/
3+
14
### Flask ###
25
instance/*
36
!instance/.gitignore
@@ -21,7 +24,6 @@ dist/
2124
downloads/
2225
eggs/
2326
.eggs/
24-
lib/
2527
lib64/
2628
parts/
2729
sdist/
@@ -248,3 +250,6 @@ ruff_cache
248250
memory.db
249251
token.json
250252
.wav
253+
celerybeat-schedule.dat
254+
celerybeat-schedule.dir
255+
celerybeat-schedule.bak

CONTEXT.txt

Lines changed: 0 additions & 287 deletions
This file was deleted.

Modelfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
FROM qwen3:4b
2+
PARAMETER num_ctx 8192

0 commit comments

Comments
 (0)