Skip to content

Commit

Permalink
Merge pull request #2 from MdSamsuzzohaShayon/development
Browse files Browse the repository at this point in the history
prepare for deployment - Development
  • Loading branch information
MdSamsuzzohaShayon authored Jan 22, 2024
2 parents 89c716c + 32e0d70 commit a9101a4
Show file tree
Hide file tree
Showing 102 changed files with 4,113 additions and 29,704 deletions.
46 changes: 44 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,44 @@
on:
jobs:
name: Django CI/CD

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
# build:
# runs-on: ubuntu-latest

# steps:
# - uses: actions/checkout@v2
# - name: Set up Python
# uses: actions/setup-python@v2
# with:
# python-version: '3.8'
# - name: Install dependencies
# run: |
# pip install -r requirements.txt
# - name: Run Tests
# run: |
# # Add commands to run your tests
deploy_backend:
# needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v3
- name: SSH and Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.VPS_IP }}
username: ${{ secrets.LINUX_USER_NAME }}
key: ${{ secrets.VPS_AUTHORIZED_SSH_KEY }}
script: |
cd /home/shayon/webdevlab
git pull origin master
cd /home/shayon/webdevlab/server
source .venv/bin/activate
pip install -r requirements.txt
./manage.py migrate
sudo systemctl restart your_project_service
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/server/.venv
/server/.env
/**/**/__pycache__
/client/node_modules
/client/.cache
/client/.env
.idea

3 changes: 0 additions & 3 deletions .idea/.gitignore

This file was deleted.

12 changes: 0 additions & 12 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/inspectionProfiles/profiles_settings.xml

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

14 changes: 0 additions & 14 deletions .idea/the-freak-lesson.iml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@
- Blog on http://blog.webdevlab.org
- Create short tutorial
- Create developer team (career opportunity)
- Create most advanced User Authentication system (Cookie based)
- Create most advanced User Authentication system (Cookie based, refresh token)
- Forum on http://forum.webdevlab.org
- User role (Admin, Student, Viewer)
-
- Do nuxt js seo for all pages

### Requirements
- Quill text editor
- Use time function [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl)
- Design layout for admin
- Main menu for home

### Database Modeling (PostgresSQL)
- Articles Table:
Expand Down Expand Up @@ -43,4 +49,5 @@

- ArticleTags Table (a junction table to implement many-to-many relationship between Articles and Tags):
- article_id (Foreign Key referencing the Articles Table)
- tag_id (Foreign Key referencing the Tags Table)
- tag_id (Foreign Key referencing the Tags Table)

4 changes: 0 additions & 4 deletions client.backup/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions client.backup/Dockerfile

This file was deleted.

61 changes: 0 additions & 61 deletions client.backup/README.md

This file was deleted.

1 change: 0 additions & 1 deletion client.backup/gatsby-browser.js

This file was deleted.

15 changes: 0 additions & 15 deletions client.backup/gatsby-config.ts

This file was deleted.

Loading

0 comments on commit a9101a4

Please sign in to comment.