Skip to content

Conversation

@aluhrs
Copy link
Collaborator

@aluhrs aluhrs commented Mar 24, 2025

📝 Description

We would like to set up Github Actions to automatically deploy so that this is no longer a manual step and the site is more up to date

🔂 Changes Made

When a PR is merged into the develop branch, the changes are automatically deployed to the testing server.

⚙️ Related Issue

🍏 Type of Change

  • New task

🎁 Acceptance Criteria

  • When a branch is merged in develop, the following is completed:
  1. SSH into DreamHost server
  2. Navigate to appropriate directory for "server", for example "testing.techtonica.org"
  3. Activate the virtual environment: source bin/activate
  4. Change to the source directory: cd techtonica/
  5. Pull the latest code using git pull
  6. Update the requirements by running pip-sync (or pip install -r requirements.txt)
  7. Stop and start the gunicorn process
  systemctl --user stop gunicorn_testing
  systemctl --user enable gunicorn_testing
  systemctl --user restart gunicorn_testing

🧰 New Environment Variables or Requirements

Three new repository secrets were added so the workflow can ssh into the server and perform necessary operations.

🧪 How to test

Testing will require merging this PR and doing trial and error to see if it works and fixing issues as needed. I'm open to another way of testing this!

✅ Checklist

  • HOLD UNTIL: The python upgrade is complete on the server as it may change the virtual environment location
  • DECIDE: If we should use a new username for this workflow
  • TODO: Update documentation to reflect change in process

@daaimah123 daaimah123 marked this pull request as draft April 2, 2025 17:26
@monikkaelyse
Copy link
Collaborator

New python virtualenv command for testing is

source testing/bin/activate

@aluhrs

@monikkaelyse
Copy link
Collaborator

This line
pip-sync || pip install -r requirements.txt
Can probably just be
pip-sync

@aluhrs
Copy link
Collaborator Author

aluhrs commented Sep 17, 2025

Updated the python virtualenv command for testing

@daaimah123 daaimah123 linked an issue Sep 17, 2025 that may be closed by this pull request
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deployment automation pipeline using Github Actions

3 participants