Commit 3abb77d0 by mvginghina

Configurare pentru deployment pe Azure Web App

parent 606d24ef
Showing with 36 additions and 4 deletions
name: Azure Web App Deployment
on:
push:
branches:
- Valeriu
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-fixed.txt
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v2
with:
app-name: 'wb2425-06-gmv'
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: .
\ No newline at end of file
const config = {
apiBaseUrl: "http://localhost:8000",
apiBaseUrl: "https://wb2425-06-gmv.azurewebsites.net",
apiTimeout: 15000, // 15 seconds timeout
useMockData: true, // Set to true to use mock data when API is unavailable
useMockData: false, // Set to false to use real API data by default
}
export default config
# Database configuration
DATABASE_URL=mysql+pymysql://root:admin@localhost/webapp
DATABASE_URL=mysql+pymysql://cqkapruhnv:bqRTdfMky$xWh$cP@wb2425-06-gmv-server.mysql.database.azure.com/wb2425-06-gmv-database
# Server configuration
HOST=0.0.0.0
PORT=8000
# Security configuration
SECRET_KEY=your-secret-key-for-development-only
SECRET_KEY=your-secret-key-for-development-only
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment