radames commited on
Commit
72f8811
β€’
1 Parent(s): 31ac7e5

prod plus 5min updates

Browse files
Files changed (2) hide show
  1. Makefile +4 -2
  2. app.py +1 -1
Makefile CHANGED
@@ -4,7 +4,9 @@ build-client:
4
  cd frontend && npm install && npm run build && rm -rf ../static && cp -r build/ ../static/
5
  build-dev:
6
  cd frontend && npm install && NODE_ENV=development npm run build && rm -rf ../static && cp -rv build/ ../static/
7
- run:
8
  FLASK_ENV=development python app.py
 
 
9
  # build-all: install-node build-client run
10
- build-all: run
 
4
  cd frontend && npm install && npm run build && rm -rf ../static && cp -r build/ ../static/
5
  build-dev:
6
  cd frontend && npm install && NODE_ENV=development npm run build && rm -rf ../static && cp -rv build/ ../static/
7
+ run-dev:
8
  FLASK_ENV=development python app.py
9
+ run-prod:
10
+ python app.py
11
  # build-all: install-node build-client run
12
+ build-all: run-prod
app.py CHANGED
@@ -101,7 +101,7 @@ def create():
101
 
102
  if __name__ == '__main__':
103
  scheduler = APScheduler()
104
- scheduler.add_job(id = 'Update Dataset Repository', func = update_repository, trigger = 'interval', seconds = 60)
105
  scheduler.start()
106
  app.run(host='0.0.0.0', port=int(
107
  os.environ.get('PORT', 7860)), debug=True)
 
101
 
102
  if __name__ == '__main__':
103
  scheduler = APScheduler()
104
+ scheduler.add_job(id = 'Update Dataset Repository', func = update_repository, trigger = 'interval', seconds = 300)
105
  scheduler.start()
106
  app.run(host='0.0.0.0', port=int(
107
  os.environ.get('PORT', 7860)), debug=True)