-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deployment and test server #5
Comments
The database: Currently i am stacking django migrations on top of each other like here because i also have a test system running. But for release i would like to squash them together. Django does have a squash command for different migrations but it sometimes creates problems. So the clenest way is to throw all migrations away and create a new initial one (and start with a new database). So steps will be:
If we have DB changes later we can add new migration files V1 compatibility: Well, the v1 API endpoints look exactly the same. The data is a bit different as described in #4 (lot_ids mainly). I'll setup the master branch and let you know. |
You can have a go. I've just tested it with a fresh database.
apart from that, all seems to work |
Okay the scraper works now! I had a few errors for some cities but I think for testing we can ignore these for the time being. IIRC the ParkAPI also does not check certificates due to requests not accepting some certificates. When running
Do you have any idea? |
Yes, And no! No immediate idea. Except that the migrations did not run correctly, but why? If you call
locations 0001_initial is the one that seems to be missing... Though, the backend would actually complain about the whole table being missing, not an individual field In
If this looks different then we need to dig deeper there. It's also possible to migrate back and forth in django (if there is no data that would be lost).
The first line not only removes the EDIT: Stuff like this usually happens when developer A applies migration XY and developer B replaces migration XY, instead of adding a new one. That's what i did earlier (2428c24) to clean the plate before you apply the migrations on the server. But looking at the commit now i would bet a KolleMate that you applied locations 0001_initial before i replaced it, because the In that case the backward migration mentioned above will likely not work and the easiest way is to DROP DATABASE and start anew. (In case one actually wants to retain data there are tricks and tweaks possible..) |
Good news! After a long time ParkAPI2 is finally up and running and you can access it on https://api2.parkendd.de/. Once everything is set we can move the pure API to https://api.parkendd.de/ and retire ParkAPI. |
Greetings JK. that sounds great. I was fighting with myself to split the scrapers/data-sources and apply the recent two fixes, ... but, a quite disintegrating covid wave was passing our family household. Nothing serious happened, we where all just trying to manage the different necessities like school, work, sweating and being good parents. Currently, everybody seems to be healthy again and life got easier. However. That's the things i want to do next. Extracting the data-sources repo and applying the scraper fixes. And adjusting the github CI action. Have a good week! |
After the current outage I noticed that the ParkAPI2 is in a much better shape than the ParkAPI, so I think I will do some last compatibility checks and then change the main API to run on ParkAPI2. |
Hi @jklmnn , |
No worries, so far it's running again, enjoy your vacation! |
I'd like to deploy this software on our server for a test run yet I have a few questions:
The text was updated successfully, but these errors were encountered: