File tree 5 files changed +19
-8
lines changed
5 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 43
43
JWT_SECRET_KEY : ${{ secrets.JWT_SECRET_KEY }}
44
44
SECRET_KEY : ${{ secrets.SECRET_KEY }}
45
45
run : |
46
- source ../ venv/bin/activate
46
+ source venv/bin/activate
47
47
pytest --disable-warnings
48
48
49
49
build-frontend :
67
67
working-directory : ./frontend
68
68
run : npm run build
69
69
70
+ - name : List files
71
+ run : ls -la ./frontend/dist
72
+
70
73
deploy-frontend :
71
74
runs-on : ubuntu-latest
72
75
needs : build-frontend
Original file line number Diff line number Diff line change 5
5
from flask_jwt_extended import JWTManager
6
6
from log_config import setup_logging
7
7
8
- def create_app ():
8
+ def create_app (test_config = None ):
9
9
app = Flask (__name__ )
10
- app .config .from_object (Config )
10
+
11
+ if test_config :
12
+ app .config .update (test_config )
13
+ else :
14
+ app .config .from_object (Config )
11
15
12
16
# Inicializa o MongoDB
13
17
init_mongo (app )
Original file line number Diff line number Diff line change 10
10
11
11
@pytest .fixture
12
12
def app ():
13
- app = create_app ()
14
- app .config .update ({
13
+ app = create_app ({
15
14
"TESTING" : True ,
16
- "MONGO_URI" : ' mongodb://localhost:27017/jreport'
15
+ "MONGO_URI" : os . getenv ( 'MONGO_URI' , " mongodb://localhost:27017/jprogram" )
17
16
})
18
17
return app
19
18
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ outputDir : 'dist' ,
3
+ publicPath : process . env . NODE_ENV === 'production' ? '/jreport/' : '/'
4
+ }
5
+
Original file line number Diff line number Diff line change @@ -13,9 +13,10 @@ if not exist "%diretorioVerificar%venv" (
13
13
14
14
cd /d " %diretorioVerificar% "
15
15
16
- ::
17
16
call venv\Scripts\activate
18
17
18
+ python -m pip install --upgrade pip
19
+
19
20
pip install -r requirements.txt
20
21
21
22
python app.py
@@ -24,4 +25,3 @@ python app.py
24
25
pause
25
26
26
27
endlocal
27
- pause
You can’t perform that action at this time.
0 commit comments