Skip to content

Commit 03d0c7f

Browse files
committed
Update README.md
1 parent 74a55bf commit 03d0c7f

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

README.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
# 🚀 PythonAnywhere Redeploy Action
22

3-
This GitHub Action automates the redeployment of a Django application hosted on **PythonAnywhere** via SSH.
3+
This GitHub Action automates the redeployment process of a Django application hosted on **PythonAnywhere** using SSH.
4+
It simplifies the workflow of pulling the latest code, installing dependencies, running migrations, and restarting the web server with minimal configuration.
45

5-
> ⚠️ **Important**: SSH access on PythonAnywhere is **only available for paid accounts**. This action will not work with free accounts.
6+
7+
## ✅ Requirements
8+
9+
Before using this action, make sure that:
10+
11+
- You have a **paid PythonAnywhere account**, as SSH access is only available for paid plans.
12+
- SSH access is enabled on your PythonAnywhere account.
13+
- Your Django project is deployed on PythonAnywhere and cloned via Git.
614

715

816
## 📦 What does this action do?
@@ -48,12 +56,12 @@ jobs:
4856
4957
| Name | Description | Required | Example |
5058
|-----------|-------------|----------|---------|
51-
| ssh_host | Optional SSH host for PythonAnywhere (default: ssh.pythonanywhere.com) | No | ssh.eu.pythonanywhere.com |
52-
| username | Your PythonAnywhere username | Yes | miguelrizzi |
53-
| password | Your PythonAnywhere password | Yes | password |
54-
| working_directory | Target working directory on PythonAnywhere | Yes | /home/username/webapp_name |
55-
| venv_directory | Path to the Python virtual environment | Yes | /home/username/webapp_name/.venv |
56-
| wsgi_file | Path to the WSGI file to reload the app | Yes | /var/www/webapp_name_wsgi.py |
59+
| `ssh_host` | Optional SSH host for PythonAnywhere (default: `ssh.pythonanywhere.com`) | No | `ssh.eu.pythonanywhere.com` |
60+
| `username` | Your PythonAnywhere username | Yes | `username` |
61+
| `password` | Your PythonAnywhere password | Yes | `password` |
62+
| `working_directory` | Target working directory on PythonAnywhere | Yes | `/home/username/webapp_name` |
63+
| `venv_directory` | Path to the Python virtual environment | Yes | `/home/username/webapp_name/.venv` |
64+
| `wsgi_file` | Path to the WSGI file to reload the app | Yes | `/var/www/webapp_name_wsgi.py` |
5765

5866

5967
## 🔐 Security
@@ -86,6 +94,9 @@ Main script executed inside the container. It uses `sshpass` to connect to Pytho
8694
- `Dockerfile`
8795
Defines a custom Docker image based on `ubuntu`, installs `sshpass`, and copies the required scripts. This ensures the environment has all necessary tools to perform the redeploy process without relying on the host runner.
8896

97+
- `.github/workflows/example.yml`
98+
Provides an example of how to use the action in a workflow. You can use it as a template or reference when setting up your own deployment workflow.
99+
89100

90101
## 📝 License
91102

0 commit comments

Comments
 (0)