Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Mihai-Valeriu Ginghina
/
WBT2425_6
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
4
Merge Requests
2
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3abb77d0
authored
May 15, 2025
by
mvginghina
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Configurare pentru deployment pe Azure Web App
parent
606d24ef
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
4 deletions
azure-deploy.yml
config.js
fastapi/.env
azure-deploy.yml
0 → 100644
View file @
3abb77d0
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
config.js
View file @
3abb77d0
const
config
=
{
apiBaseUrl
:
"http
://localhost:8000
"
,
apiBaseUrl
:
"http
s://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
fastapi/.env
View file @
3abb77d0
# 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment