-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Charming Charmhub - PaaS flask app (#1906)
* chore: import app in app.py This is required for PaaS app charmer * chore: add .rock and .charm to gitignore * chore: create rockcraft.yaml using `rockcraft init --profile flask-framework`
- Loading branch information
Showing
3 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,4 +69,6 @@ bower_components/ | |
*.log | ||
|
||
build/ | ||
dist/ | ||
dist/ | ||
*.charm | ||
*.rock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import os | ||
|
||
# canonicalwebteam.flask-base requires SECRET_KEY to be set, this must be done before importing the app | ||
os.environ["SECRET_KEY"] = os.environ["FLASK_SECRET_KEY"] | ||
|
||
from webapp_beta.app import app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: charmhub-io | ||
base: [email protected] | ||
version: "0.1" | ||
summary: Rocked charmhub.io | ||
description: | | ||
This is the rockcraft for the charmhub.io website. | ||
platforms: | ||
amd64: | ||
|
||
extensions: | ||
- flask-framework | ||
|
||
parts: | ||
flask-framework/install-app: | ||
prime: | ||
- flask/app/.env | ||
- flask/app/app.py | ||
- flask/app/webapp | ||
- flask/app/webapp_beta | ||
- flask/app/templates | ||
- flask/app/static |