Comments (2)
Saw Tyler created this issue. Pasting a change I made locally in attempt to address this issue. Not convinced it is the solution, and may spark better idea.
Synopsis: add a 'start django' task and run both the existing 'restart django' and the new 'start django' tasks, allowing the provision to continue (instead of the current halt) if it fails. If django is already started, 'restart-django' task should succeed, if django is not already started, 'start django' task should succeed.
Changes to two files:
scripts/provision/admin.yml
(add use of start django)
- name: gunicorn-app
copy: src=files/gunicorn-app.sh dest=/srv/scripts/gunicorn-app.sh mode=650 owner=mapstory group=www-data
- notify: [restart django]
+ notify: [start django, restart django]
tags: [config, files, gunicorn]
- name: supervisor-gunicorn
copy: src=files/supervisor-gunicorn-django.conf dest=/etc/supervisor/conf.d
- notify: [reload supervisor, restart django]
+ notify: [reload supervisor, start django, restart django]
tags: [config, gunicorn]
scripts/provisions/handlers.yml
(add definition of start django, add ignore_errors to existing restart django)
- name: restart django
supervisorctl: name=gunicorn-django state=started
sudo: yes
sudo_user: root
notify: check django running
+ # jcw - allow it to fail, might not be started.
+ ignore_errors: True
+ - name: start django
+ supervisorctl: name=gunicorn-django state=started
+ sudo: yes
+ sudo_user: root
+ notify: check django running
+ # jcw - allow it to fail, might already be started.
+ ignore_errors: True
from mapstory.
This is fixed.
from mapstory.
Related Issues (20)
- Integrate and test iVideo in StoryPins on UC HOT 1
- Upload GetStarted videos and copy to UC Ops HOT 1
- Remove Links to `Create Layer` Modal
- Fullscreen button on Layer Detail Page does not work.
- When Editing Frames, Can cause "white out"
- Deploy 2.1.1 to MapStory Prod
- Close unneeded deployments
- Shut down Whitelabel Anytime After March 9th HOT 1
- GEOINT Services DevOps Pipeline Failure HOT 1
- Limit pathname to restricted directory
- Remove hyperlink in VTC text HOT 1
- Museum mode not auto-playing next chapter
- GeoNode GNIP for contributing orgs and initiatives
- Enable story thumbnails that reflect styling in the story
- Update wiki link in footer HOT 1
- Composer tour uses 'StoryScapes' on MapStory
- New account creation generates error page HOT 1
- Logging into MapStory longer time than usual HOT 1
- Adding layer to Initiative Page fails to add proper URL form (breaks layer) HOT 1
- Mapstory.org does not load
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapstory.