Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
clean: false

- name: Restart Web Service
- name: Deploy via Docker Compose
run: |
echo "Deploying the latest main branch..."
# Insert command to restart the application, e.g.,
# sudo systemctl restart gunicorn
# Or if running via a local script:
# ./restart_server.sh
echo "Building and restarting the Docker container..."
docker compose up -d --build
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ cython_debug/
.cursorignore
.cursorindexingignore

# Private assets (e.g., CV) kept out of git
private_assets/

# Marimo
marimo/_static/
marimo/_lsp/
Expand Down
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM python:3.9-slim

WORKDIR /app

# Install gettext for envsubst
RUN apt-get update && apt-get install -y gettext-base && rm -rf /var/lib/apt/lists/*

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

# Expose port
EXPOSE 80

# Run gunicorn
CMD ["gunicorn", "--bind", "0.0.0.0:80", "app:app"]
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,20 @@
# home
This is the code for my website
This is the code for my website. I'll mostly be publishing blogs and documenting my kernel dev/system administration journey here.

```
_________________________________________
/ Base 8 is just like base 10, if you are \
| missing two fingers. |
| |
\ -- Tom Lehrer /
-----------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
```

## Deployment Status

[![Deploy](https://github.com/TuringVerified/home/actions/workflows/deploy.yml/badge.svg?branch=main)](https://github.com/TuringVerified/home/actions/workflows/deploy.yml)
12 changes: 10 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
from flask import Flask, render_template, send_from_directory
import os

from flask import Flask, redirect, render_template, send_from_directory

app = Flask(__name__)


@app.route("/")
def home():
return render_template("index.html")
Expand All @@ -26,5 +29,10 @@ def robots():
def blog_omen():
return render_template("blog_omen.html")


@app.route("/cv")
def cv():
return render_template("cv_embed.html")

if __name__ == "__main__":
app.run(debug=True)
app.run(debug=False, host='0.0.0.0')
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Flask==2.0.1
Werkzeug==2.0.1
gunicorn==20.1.0
2 changes: 1 addition & 1 deletion templates/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h1>About Me</h1>
</div>

<div class="interests" style="text-align: left; margin-top: 40px; margin-bottom: 20px;">
<p>I'm Turing Tested. Here's my home on the internet. I mainly plan on posting my findings .</p>
<p>I'm Turing Tested. Here's my home on the internet. I mainly plan on posting my kernel dev journey and homelabbing pursuits.</p>

<h2 style="font-size: 1.2rem; color: #00ff9c; margin-top: 30px;">Socials</h2>
<ul style="list-style-type: none; padding: 0;">
Expand Down
Loading
Loading