Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Nov 21, 2024
1 parent 7837082 commit fcd93e0
Showing 1 changed file with 75 additions and 2 deletions.
77 changes: 75 additions & 2 deletions STAGING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,77 @@
# Setting Up a Staging Environment for Dropship V2

This file contains instructions for setting up a staging environment.
Please refer to the project documentation for detailed steps.
This guide outlines the process of setting up a staging environment for the Dropship V2 project.

## Prerequisites

- A separate server or hosting environment for staging
- Access to a staging database

## Steps to Set Up Staging

1. Clone the repository on your staging server:
```
git clone https://github.com/CrzyHAX91/dropshipv2.git
cd dropshipv2
```

2. Create a new branch for staging:
```
git checkout -b staging
```

3. Set up environment variables for staging.

4. Install dependencies:
```
pip install -r requirements.txt
```

5. Run database migrations:
```
python manage.py migrate
```

6. Collect static files:
```
python manage.py collectstatic
```

7. Set up a process manager to run the application.

8. Configure your web server to serve the application.

## Deploying to Staging

1. Push changes to the staging branch:
```
git push origin staging
```

2. On your staging server, pull the changes:
```
git pull origin staging
```

3. Restart your application server.

## Testing in Staging

- Perform thorough testing of all features in the staging environment.
- Test with a copy of production data (anonymize sensitive information).
- Verify that all third-party integrations work correctly.

## Promoting Staging to Production

Once testing in staging is complete and successful:

1. Merge the staging branch into main:
```
git checkout main
git merge staging
git push origin main
```

2. Deploy the main branch to your production environment.

Always test thoroughly in staging before deploying to production.

0 comments on commit fcd93e0

Please sign in to comment.