Comments (22)
This looks good, thanks. I think we should rename my implementation to sample-django-postgres-minimal
and make yours the new sample-django-postgres
.
Re: repetitive, I find it surprising how often "one off" becomes something I have to do more than once. 😁
from piku.
@jfmatth this looks great, thanks for providing an updated example. If it is ok with @rcarmo we can move your example to the piku organization, and you can make a PR to update the documentation to point to your example instead.
from piku.
@jfmatth one minor thing is the traditional capitalization is "Piku" not "PIKU" so it might make sense to update your README to reflect that. Not a huge deal or anything.
from piku.
Ok, built a first version of the idea, tell me what you think.
I'm happy for you guys to bring it over to the PIKU org or give me PR's to fix stuff then move it over. Either way, fun to work on this.
https://github.com/jfmatth/sample-django-postgres.git
from piku.
Hi again @jfmatth! Thanks for your offer to make an updated example, that sounds great. I guess the choice of more vs. less manual intervention is a matter of taste. My personal taste falls on the side of having more scripted in the code and less manual steps (because I'm always forgetting to do manual things) but I am sure there are many others who like it the other way. How about if we make a new repository with your take on best-in-class Django deployment to Piku? Thanks for the reminder to move migrate
into the release script.
from piku.
Hi @chr15m I agree that scripting is good if it's repetitive , but in the case of Django and DB setup, I view that as a one-off exception).
from piku.
@chr15m - OK, so I took a closer look at your sample postgres one and made a new repo with something closer to what you're doing. I honestly didn't know a user could run postgres' createdb
command and get themselves a DB, but makese total sense.
I moved a few things around, simplified the settings file, and updated to Django 4.x
Let me know what you think
https://github.com/jfmatth/piku-django4-postgres
from piku.
@jfmatth one other minor thing is you could add the 'migrate' step to your ./bin/stage_release.sh
or else maybe put a note for the user about how to run it remotely when they are ready, as you've done with the create-db.
from piku.
@chr15m No worries, always glad to contribute.
You could either take the whole thing as an example repo for your org, or reference mine. Probably the former would be better, then you guys can own it and I can do PR's against it.
Dang it, I thought I put in the migrate command, but happy to add it after the above is decided. I don't like to migrate on every release, that seems too dangerous 😮
I
from piku.
I do have 'migrate' in the stage_release.sh command, but should mention in the README how to it manually.
from piku.
@chr15m Let me know after you pull it into your org, I have a few things I want to add like a DBNAME instead of using the NGINX_SERVER_NAME in the provision script. Some other 12-factor Django ideas Ill sprinkle in too.
from piku.
This issue is stale because it has been open for 90 days with no activity.
from piku.
This issue was closed because it has been inactive for 30 days since being marked as stale.
from piku.
@jfmatth sorry I haven't got around to this yet. I don't understand what I am supposed to do here to give you access. Can you let me know how you want to proceed? Can I just give you write access to the Django example repository?
from piku.
Hi @chr15m, Sure.
I was thinking you'd just bring the whole repo of mine into one of yours and either point to it in the docs or just leave it there like others.
I don't need access and would prefer just to use PR's to update it from time to time, if that's OK.
Hope this helps.
from piku.
This issue is stale because it has been open for 90 days with no activity.
from piku.
@jfmatth I checked the documentation and it seems you have to initiate this from your end. There's nothing I can actually do to bring it over I don't think.
https://docs.github.com/en/repositories/creating-and-managing-repositories/transferring-a-repository
Also:
To transfer a repository that you own to an organization, you must have permission to create a repository in the target organization.
And:
The original owner of the repository is added as a collaborator on the transferred repository. Other collaborators to the transferred repository remain intact.
I am fine with this myself as it would be less burden for you to maintain it, but need to check with @rcarmo.
from piku.
HI @chr15m, thanks for keeping this alive 😄
I'll read the docs and initiate if that's what it takes. I want to do some clean up first and then ill give it a go.
from piku.
Hi @chr15m
Sorry to take so long on this, been busy at a new job.
I tried transferring to the PIKU org, but don't have the rights. Not sure if you want to give me rights to do that or just fork it and take it over. I'm OK either way.
I see a lot of issues / traction around PIKU, great news.
from piku.
Ok, what about if you raise a PR against the current django + postgres repo and I'll merge it?
from piku.
Excellent idea. PR on it's way.
from piku.
Added new PR piku/sample-django-app#33 to Sample.
We should close this one @chr15m and reference the PR in the other repo
from piku.
Related Issues (20)
- go.mod support HOT 10
- Passthrough mode HOT 6
- Support pyproject.toml and poetry dependencies HOT 11
- Broken links in docs HOT 2
- Python3.12(on Ubuntu 24.04) SyntaxWarning issues HOT 5
- Windows support HOT 3
- nginx: "listen ... http2" directive is deprecated HOT 6
- piku script should work with multiple deploy targets
- piku remote operator script hangs when no git remote configured
- remote operator script does work for `help` sub-command
- Data directories/DATA_ROOT? HOT 6
- piku shell script broken under dash HOT 2
- Document env vars that are set on deploy HOT 1
- Put all documentation into piku.github.io repo HOT 3
- PHP Support HOT 2
- Enable npm alternatives like yarn, pnpm. HOT 1
- Test individual deployment types HOT 1
- nginx auto-reload does not work on Ubuntu 20 (Focal)
- Pushing a repo with Git LFS fails
- Migrate from uwsgi to gunicorn HOT 1
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 piku.