18 Dec 2024 |
rcmlz |
but setup like this require a dedicated VM (managed manually) or is this all behind some cloud infrastructure management tools? |
16:28 |
|
librasteve |
i just built a raku-cro-nginx-let’s encrypt on AWS EC2 ubuntu LTS … i would say that is standard and for my needs likely can share a server instance across multi cro and wordpress sites … did it use docker this time but docker compose is also a good path |
16:31 |
|
|
rcmlz: it’s been a while since i heard of cgi … i think the modern version of this is to have an http server handle request response (eg cro) on one or more routes and use eg nginx to integrate server routes on a machine |
16:36 |
|
rcmlz |
So there is e.g. a „deploy“ bash-script that takes a fresh VM and does all the setup - and databases or data files are on different host? |
16:37 |
|
librasteve |
raku.land/zef:librasteve/CLI::AWS::EC2-Simple will get you an empty raku docker ubuntu on ec2 |
16:41 |
|
|
raku.land/zef:librasteve/CLI::Wordpress does what you describe for Wordpress on top of that |
|
|
rcmlz |
Thank you. I have a clearer picture now about the technical setup of a Raku driven website might look like. |
16:44 |
|
librasteve |
the build section here github.com/librasteve/raku-Cro-Web...E.md#build is my manual steps to achieve basic install of cro (no db) … so it’s on my radar to automate but i want to do a production build first to uncover any wrinkles |
16:45 |
|
|
also there are good instructions on the raku cro docs for how to do this with docker (and kubernetes i suppose) which i will try to follow also |
16:46 |
|
|
oh and somewhere i am planning to bring Red and mysql onboard |
16:47 |
|
|
btw i would love any feedback / collaboration / feature requests at github.com/librasteve/raku-Cro-Website-Basic please note it’s all quite experimental atm |
16:48 |
|
|
&afk |
16:51 |
|
rcmlz |
I am all-in on „experimental“ :-) Recently I got interested in Nix (and guix) because I work in a BYOD environment and desperately want „reproduceability“ on my own and on the computers of all students - and automate any setup fully. Maybe I manage at some point how to package rakudo-star for Nix packages, which could be extended in your direction. But there is not much time for that „interest“ atm |
16:56 |
|
scullucs |
Bring Your Own Drugs? |
16:58 |
|
rcmlz |
So my long term goal would be to have for each programming or research project a default.nix that does all the needed things and make it „work“ - including Jupyter and perhaps stuff like Cro etc. |
17:00 |
|
|
Device 🤓 |
|
|
scullucs |
Oh, okay. Probably better 🙂 |
|
|
rcmlz |
And atomatically setting up Rakudo, Cro, Red, MySQL, ngingx etc. on a local VM via Nix should be not much different from doing the same on a VM somewhere else. |
17:03 |
|
SmokeMachine |
Red has no MySql driver yet… :( |
17:09 |
|
|
That’s probably the next thing I should tackle… I have started… but not there yet: github.com/FCO/Red-Driver-MySQL |
17:12 |
|
|
If anyone would like to help… |
17:13 |
|
19 Dec 2024 |
librasteve |
SmokeMachine: I am hoping to add red to my basic website examples pretty soon - do you have a "best practice" installation you can point to ... or just let me know what is the primary backend to target |
16:46 |
|
|
While I would prefer mysql (since I already have a number of WordPress sites that use that), I think postgres would be comparable and all I am doing is stuff like dump, import, user perms in the setup / site management side. |
16:48 |
|
|
I am also tempted by sqllite - on the one hand that would be great for GH integrations - just clone and run / or commit and push a state ... on the other it is not quite as serious as MySQL / postgres for a website tool that aims for some credibility as a way for tech savvy business to deploy and maintain small to medium sites which is kin of where I think we should be aiming (in the spirit of the early |
16:51 |
|
|
success of ruby on rails) |
|
|
|
also I see that Red has DBIish as a dependency and that DBIish supports MySQL / MariaDB ... so curious why you don't just get that for free |
16:53 |
|
SmokeMachine |
librasteve: fco.github.io/Red/ |
18:07 |
|
|
librasteve: I currently consider SQLite more serious than MySQL... it is the most deployed DB in the world... |
18:08 |
|
librasteve |
tx - kudos on the awesome Red docs! |
18:09 |
|
SmokeMachine |
librasteve: Red uses DBIish, bu Red::Driver is much more than a connection layer... it have to know how to translate Red::AST to SQL specific to the DB being used... |
18:11 |
|
librasteve |
notes that stuff like this turso.tech uses sqlite and decides to lead with that for now |
|
|
SmokeMachine |
for example: (this is the Red MySQL driver I'm writing based on Red's CommonSQL driver): github.com/FCO/Red-Driver-MySQL/bl.../MySQL.pm6 |
18:13 |
|
librasteve |
.oO |
18:16 |
|
|
that's some beautiful code dude |
|
|
SmokeMachine |
thanks :) |
18:18 |
|
librasteve |
adding MySQL support would be a great mid level intro to raku coding for a budding core dev |
18:20 |
|
SmokeMachine |
Yes... I need to go back to that... |
18:26 |
|
|
If someone would like to help on that... |
|
|
librasteve |
humbly I suggest we would benefit from migrations more than from the MySQL (and likely only you have the insight to do that) |
18:29 |
|
|
docs.djangoproject.com/en/5.1/topi...igrations/ |
|
|
|
^ since that's the industry standard |
|
|
|
(I think Cro has this also ... but not sure if that's relevant) |
18:30 |
|
SmokeMachine |
github.com/FCO/Red/issues/15 |
|
|
|
I even did a talk about that... the most confusing and boring talk I ever did... :) |
18:31 |
|
|
www.youtube.com/watch?v=9YHRAl-mFm0&t=5s |
18:32 |
|
librasteve |
thanks, but no thanks! |
|
|
SmokeMachine |
??? no the issue thread? no the talk video? no help? sorry, I got confused... :) |
18:34 |
|
librasteve |
btw did my comment on the reentrancy of Cromponent make sense? |
|
|
|
- just joking that you shared the link to the most confusing and boring talk you ever did ;-) |
18:35 |
|
|
actually I saw your talk already and I learned a lot ... |
18:37 |
|
|
I will watch again when I get a chance |
18:38 |
|
SmokeMachine |
18:48 <SmokeMachine> I still need som time on that… I still don’t get why not adding the component only once… |
18:52 |
|
librasteve |
no problem |
19:22 |
|