Comments (3)
Alternatively, we could focus around git and github being the update mechanisms:
The blog could check github to see either if there has been a new release or if the develop branch is ahead. If so, then we pull in the new commits, then reload.
But we need to know if there are any db changes required. This could be done by running alembic in a new python process to check if the db is up-to-date or not. If not, then we need to shut down, back up db, migrate db, start uwsgi. If migration fails, then fallback to last working commit, use the backed up db as the actual db.
Alternatively, we could just dump the responsibility of doing db migrations onto the user and only handle updates that are straightforward.
It would also be nice to have info on what has changed, although this could simply be done by showing the last commit message and having a master branch only for deployments.
from fireblog.
I plan on closing this issue once I've gotten round to testing this for real.
from fireblog.
I have tested this by cloning the repo, cloning the clone, and usinng the first clone as a master, making sure the 2nd clone picked up on the changes, and was able to update.
from fireblog.
Related Issues (20)
- Handle more errors
- Stop using persona for login HOT 1
- Handle new deps on auto-update
- Create simple theme
- Draft
- Minify all resources
- Fix edit textbox size in simple theme
- Add sorting to multiple post display HOT 2
- Make all form submits work by pressing Enter HOT 1
- Add setting for length of paginated pages
- Remove dependency on personatestuser.org
- Combine all commands into one HOT 1
- Use https://requires.io/
- Add support for chrome custom tabs
- Improve performance
- Look into event dispatching
- Improve reload template
- Add alt text to polymer icons
- Change 'pserve' command to 'uwsgi' one
- Handle new packages
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 fireblog.