#dev 2020-02-01
2020-02-01 UTC
# [LewisCowles] this happens even with the original index.php
# [LewisCowles] so I think something is trying to use the secrets before we’re getting to override
# [LewisCowles] I think it’s the composer autoload + redis
# [LewisCowles] if I set the key manually it works
# [LewisCowles] So it’s coming at line 36, which means our line is never true
# [LewisCowles] about APP_NAME
# [LewisCowles] but it’s also not true using my SETUP_… ENV
# [LewisCowles] I might make it die and dump the ENV just so I can be sure what the state of play is
# [LewisCowles] neither are set sadly
mblaney and gRegorLove joined the channel
KartikPrabhu joined the channel
# [LewisCowles] I’m going to deploy from master to see if it behaves differently
KartikPrabhu joined the channel
# [LewisCowles] weirdest part is that the APP_KEY is set. Something using it seems to require that it be set outside of a branch
# [LewisCowles] master works
# [LewisCowles] I’ve reset index.php, so it must be the setup controller edits
maxwelljoslyn joined the channel
# [LewisCowles] it worked from master a few commits ago. Just noticed my master is missing updates
# [LewisCowles] none of the changes I’ve made should be able to break this
Bohren_Gore joined the channel
# [LewisCowles] Ha, it was the procfile
# [LewisCowles] fixed, smaller, doesn’t touch the installer
# [LewisCowles] The installer means if we cache config we get the error I reported. Might be worth me making an issue just to highlight if anyone else feels like applying generic laravel heroku knowledge
# [LewisCowles] they will have an awful time
# [LewisCowles] it wasn’t a problem before because I was setting the APP_KEY in the app.json
# [LewisCowles] CLEARDB_DATABASE_URL -> DATABASE_URL and all the other sets of opinions I was placing are gone for now
# [LewisCowles] Makes the PR simpler
gRegorLove joined the channel
# [LewisCowles] it’s ready
# [LewisCowles] NP, it’s much less to look at now
Bohren_Gore joined the channel
Bohren_Gore joined the channel
# [LewisCowles] I will be sending a follow-up PR for the cascade. Checkout what I’ve set in indielogin.com PR https://github.com/aaronpk/indielogin.com/pull/57 or branch https://github.com/Lewiscowles1986/indielogin.com/tree/heroku-button
# [LewisCowles] it should probably become a method which tests $_ENV for one of the supported database uri providers
# [LewisCowles] I knew you meant meetable
# [LewisCowles] but the cascade is normal PHP so should work
# [LewisCowles] you can do what you’ve put, but then what if someone sets up JAWSDB
# [LewisCowles] Because it’s Laravel, someone might even want heroku postgres
# [LewisCowles] or sqlite
# [LewisCowles] hehe
# [LewisCowles] ```$db_env = array_filter(
# [LewisCowles] getenv('JAWSDB'),
# [LewisCowles] getenv('DATABASE_URL'),
# [LewisCowles] getenv('CLEARDB_DATABASE_URL')
# [LewisCowles] ], function($val)
{ return !empty($val); }
# [LewisCowles] );```
# [LewisCowles] it’s nasty so I’m loathed to have it generally as it’ll evaluate every boot, but in meetable, you can pick one and set it
# [LewisCowles] so only use it in setup
# [LewisCowles] then Laravel loads CLEARDB_DATABASE_URL
# [LewisCowles] sorry loads DATABASE_URL
# [LewisCowles] you know what thats my bad, I removed the “as”: “DATABASE” section from the app.json
# [LewisCowles] which would make cleardb use DATABASE_URL instead of their silly CLEARDB_DATABASE_URL
# [LewisCowles] no need for the cascade at all
# [LewisCowles] PR incoming
# [LewisCowles] this one is for the manual steps to do the same
# [LewisCowles] I have switched punch to ignite just to keep it in line with app.json people can upgrade addons later. Downgrading is harder
# [LewisCowles] I’ll remove the cascade in indielogin.com heroku PR too and pivot to attaching `as`
# [LewisCowles] it has an S3 addon. I know rails struggles with it
# [LewisCowles] give me a sec
# [LewisCowles] heroku addons:create cloudcube:free
mblaney joined the channel
# [LewisCowles] CLOUDCUBE_ACCESS_KEY_ID
# [LewisCowles] CLOUDCUBE_SECRET_ACCESS_KEY
# [LewisCowles] there is a setting called `endpoint` in the PHP AWS SDK (all the AWS SDK’s) and that is `CLOUDCUBE_URL` without the path. The bucket name is the `basename($url['path'])` I’ll try to get on it this weekend
KartikPrabhu joined the channel
mblaney joined the channel
# aaronpk [LewisCowles]: I think you're gonna like the changes. now on heroku you're only asked these series of questions: https://media.aaronpk.com/Screen-Shot-2020-01-31-20-47-45-rZciV9IfHT.jpg https://media.aaronpk.com/Screen-Shot-2020-01-31-20-47-53-xWzhU2PhjD.jpg https://media.aaronpk.com/Screen-Shot-2020-01-31-20-48-09-CmSKd9cAvg.jpg https://media.aaronpk.com/Screen-Shot-2020-01-31-20-48-27-0p1IMdSUeC.jpg
virtual_vagrantD and [dmitshur] joined the channel
# [dmitshur] it appears indieauth.com doesn't support it when the IndieAuth authz endpoint is advertized in an HTTP Link header. luckily indieweb.org uses indielogin.com which supports it fine.
# [dmitshur] I've seen many people still using it 😞 even [schmarty]
# [dmitshur] (it doesn't affect me negatively, just an observation)
mblaney joined the channel
# [dmitshur] 🫂 hehe
[tantek] joined the channel
mblaney joined the channel
mblaney, [fluffy], KartikPrabhu, gRegorLove and maxwell joined the channel
# maxwell maxwelljoslyn
maxwelljoslyn joined the channel
# maxwelljoslyn woops. I want to add a flag to my bash script that syncs my site to S3, but I'm new to bash options and having trouble. please lend a hand - think I've almost got it
# maxwelljoslyn goal: sync everything if I run "sync.sh" , sync everything but the tag pages if I run "sync.sh -g". see the paste for minimal example :^)
mblaney, HielleMatrixBrid, jeremych_, [AlisonW], [jgmac1106], nickodd and [Rose] joined the channel; mblaney left the channel
[LewisCowles] joined the channel
# [LewisCowles] Congrats Rose. I’m not surprised you did it, but I am glad you’ve confirmed
# [LewisCowles] Rose++
# [LewisCowles] [aaronpk] ++ (I went to sleep by 4am)
# [LewisCowles] Rose, it’s always the way. Around 2010 I started my new sneaky contracts. I cannot show a specific customer setup or data, as they have NDA for the complete set of things; but my contract states that I own all the things and it’s the configuration of that I’m selling to the customer.
# [LewisCowles] Yay
[KevinMarks] and ludovicchabant joined the channel
# [LewisCowles] 2 new PR’s for meetable (it’s hilarious I don’t even know how to use it lol)
[jgmac1106] joined the channel
# [LewisCowles] Check now
# [LewisCowles] I forgot to make PR’s from the branches
[Rose] joined the channel
# [Rose] Imagine “git meetable” and Loqi replying with https://github.com/aaronpk/Meetable
nickodd joined the channel
[mapkyca] and krychu joined the channel
# aaronpk Ooo their client create API doesn't require auth https://devcenter.heroku.com/articles/platform-api-reference#oauth-client-create
# [LewisCowles] Heroku authenticates people
# [LewisCowles] it has two methods I’m aware of
# [LewisCowles] • browser
# [LewisCowles] • git
# [LewisCowles] meaning if you can access the browser or have push access to git, then you can access
# [LewisCowles] I have no idea if they send public keys from github to heroku to enable the git integraton, but you need to opt into it I think
# [LewisCowles] no oauth AFAIK though
# [LewisCowles] scope-like things seem to be at the account level
# [LewisCowles] where?
# [LewisCowles] I’ll learn a thing
# [LewisCowles] It’s nice. I take it heroku config:set might be able to go away?
# sivy Getting from "what I wanted it to look like on my blog" to "what I want it to look like on twitter" might end up requiring some kind of machine learning.
# sivy making it automagical is *hard*
# @steveivy git switch <branch> git restore <file> Thanks the ever-loving heavens (git 2.23) https://twitter.com/mislav/status/1206937217194741760?s=20 (monkinetic txt-77574ef) (twitter.com/_/status/1223649620959432706)
# Loqi git switch <branch>
git restore <file>
Thanks the ever-loving heavens (git 2.23)
https://twitter.com/mislav/status/1206937217194741760?s=20
chrisaldrich joined the channel
# sivy @aaronpk yeah, but the code already strips HTML and then sends it, so it's the markdown processor converting < to < then stripHTML doesn't know how to convert it back for the micro post
# sivy just another case to handle
# sivy "just do what I mean"
# sivy right?
# sivy question: If I want to support some kind of "share this to my blog" thingy that can be used from external apps, what's the best way/API to support?
# sivy I'm thinking from Drafts, for one, or something that works with iOS share sheets
# [LewisCowles] I spent way too long on unit testing, but at least coverage won’t go down every time I PR
# [LewisCowles] there is no-longer a default region though…
# [LewisCowles] uses the table cloudcube provides, where they deduce the region from “the bucket”
# [LewisCowles] AFAIK it’s not a bucket
# [LewisCowles] Unless they are renting paths in a bucket
KartikPrabhu joined the channel
# [LewisCowles] Looks like I misremembered something please don’t merge
# [LewisCowles] it is one big bucket and we get a prefix…
# [LewisCowles] got to find where I set a forced object prefix
# [LewisCowles] ‘root’…
KartikPrabhu joined the channel
# [LewisCowles] Hmm.. I need to test uploading a file to meetable. aaronpk, any help?
[mapkyca] joined the channel
# [LewisCowles] I only have 3 links
# [LewisCowles] • Meetable
# [LewisCowles] • Past Events
# [LewisCowles] • Discover
# [LewisCowles] How do I 😂
# [LewisCowles] no idea how to use this
# [LewisCowles] is it in the README
# [LewisCowles] oh dude `AUTH_SHOW_LOGIN=true`
# aaronpk i'm gonna make it show it by default https://github.com/aaronpk/Meetable/issues/75
# [LewisCowles] I think it might be for the best. I’ve also not set it up with Github, so I guess I should check that one of the two login methods is supported
# [LewisCowles] Sure. I’ll play tester
# [LewisCowles] dude, S3 works
# [LewisCowles] high-five
KartikPrabhu joined the channel
# [LewisCowles] so did you write a heroku oauth client, or use a generic library?
# [LewisCowles] Also does heroku oauth need S3?
# aaronpk 2: when they come back from heroku, get an access token https://github.com/aaronpk/Meetable/blob/master/app/Http/Controllers/HerokuController.php#L46
# [LewisCowles] umm. So do I need to turn off GitHub to use heroku?
# [LewisCowles] I’ve put the client and secret in ENV
# [LewisCowles] it’s the AUTH_METHOD I was missing.
# [LewisCowles] for some reason I was expecting a chooser
# [LewisCowles] like IndieAuth 😉
# [LewisCowles] we use IDP at work 😉
# [LewisCowles] We’ve got an integration to Okta
# [LewisCowles] Btw it’s saying I don’t have a client ID, but I do
# [LewisCowles] from the heroku client command
# [LewisCowles] I have
# [LewisCowles] heroku clients:create “Meetable OAuth” https://meetable-2020-lc-s3.herokuapp.com/auth/heroku/callback
# aaronpk I used the API to make my client https://devcenter.heroku.com/articles/platform-api-reference#oauth-client-create and set the client ID and secret config vars manually
nek11Discord[m] joined the channel
# [LewisCowles] yeah I thought I’d link the command. It’s the same one. I think you picked two different names. It’s my bad Scanning the beginnings and ends only I see now that they put OAUTH where you put CLIENT
# [LewisCowles] I do get a 404 when I return to the app
# aaronpk i'm copying this curl example literally https://devcenter.heroku.com/articles/platform-api-reference#oauth-client-list-curl-example
# [LewisCowles] I think it’s because the command I just shared has /callback which is the method, not a part of the web routes
# [LewisCowles] I’m making a new client and deleting the old one
nek1113Discord[m joined the channel
# [LewisCowles] hehe, people need to have allowed users, not just admins in their site to use heroku
[Sadik_Shahadu] joined the channel
# [LewisCowles] Right but the first user login failed
# [LewisCowles] so this one was the first
SnoochToTheNooch joined the channel
# [LewisCowles] I logged in with a new private window and it worked
# [LewisCowles] shouldn’t be cookies as they can’t set them on our domain
# [LewisCowles] at least it worked
sivy-phone joined the channel
# [LewisCowles] anyway taking the wife to the movies, so have fun 👋
# [LewisCowles] the S3 is
# [LewisCowles] Redis is also
RenegadeDiscord[ joined the channel
# [LewisCowles] Thanks for showing me around too
nek1113Discord[4 joined the channel
# KartikPrabhu same :P though nothing I have is even close to your setup
# [jgmac1106] having the weirdest issue as we migrate a website at work, legacy links to assets (mainly pdfs) with any uppercase in the url will not resolve to https but if there aren't any uppercase the redirect is fine, we use hostgator, at their highest tier of support, funny bug
nickodd left the channel
# [jgmac1106] i guess that is more chat, sorry
KartikPrabhu and [dmitshur] joined the channel
# [dmitshur] any objections if I add my personal site to the list of IndieAuth clients at https://indieweb.org/IndieAuth#IndieAuth_Clients ? when I was implementing an IndieAuth authorization endpoint, I used that list to test my implementation, so the more the better IMO.
chrisaldrich joined the channel
gRegorLove joined the channel
gxt joined the channel
# @jgmac1106 ↩️ That was my thought behind http://samizdat.jgregorymcverry.com/ an academic journal run on syndication and webmentions. (https://quickthoughts.jgregorymcverry.com/s/1UNbFI) (twitter.com/_/status/1223718255484964870)
# @miklb If anyone is currently posting photos to WordPress using micropub that syndicates to Twitter using http://brid.gy, please raise your hand & share your template. (twitter.com/_/status/1223731305004851200)
[Christina_Hendr, [jgmac1106], miklb and [chrisaldrich] joined the channel
[Michael_Beckwit and [LewisCowles] joined the channel
# [LewisCowles] 2.5 minute install for what?
# [LewisCowles] IDK, maybe some of that was what I was seeing earlier
# [LewisCowles] I’ve not touched the headers
davepeck joined the channel
# [LewisCowles] By 2.5 minutes; are you using existing OAuth client + secret and the turn-key addons of Heroku, or running some shared-hosting tests, or the manual Heroku?
# [LewisCowles] linking it to your github is a separate step sadly
# [LewisCowles] the button just allows you to deploy
# Loqi It looks like we don't have a page for "it deploying" yet. Would you like to create it? (Or just say "it deploying is ____", a sentence describing the term)
# [LewisCowles] settings, deploy, from github
# aaronpk visit https://github.com/aaronpk/Meetable click deploy
# [LewisCowles] deploying is taking a specific revision of an application source code or pre-built, and setting it up on a machine
# [LewisCowles] It takes the URL of the referer AFAIK
# [LewisCowles] you can add URL parameters to force behaviours
# [LewisCowles] maybe they are retrieving a cached version from GitHub.
# [LewisCowles] having a URL does not and should not mean a Live URL is fetched
# [LewisCowles] try checking out and pushing a branch
# [LewisCowles] old-school cache-busting
# [LewisCowles] from master OFC
# [LewisCowles] Right, but you don’t need to do that sknebel
# [LewisCowles] it’ll use the referrer you click from
# [LewisCowles] I was deploying from the branch I was PR’ing
# [LewisCowles] How Unfortunate
# [LewisCowles] haha
# [LewisCowles] don’t then
# [LewisCowles] close PR
# [LewisCowles] It really depends on where a thing is setup. I don’t like blanket perf statements.
# [LewisCowles] unless they are on very small scales, even then the controls will influence
# [LewisCowles] we have a site with a minimal number of things. Nothing will change it’s broad performance characteristics right now
# [LewisCowles] cookies are transmitted between the client & server per-request. Don’t believe they are faster or slimmer as a blanket. It would defy physics for the whole of a thing, travelling the full distance of the WWW to be faster than anything not needing to do so.
# [LewisCowles] It’s okay that we don’t use Redis. It certainly has some desirable properties.
# [LewisCowles] I like that you only support MySQL. I prefer it
# [LewisCowles] Doesn’t make it wrong to use Postgres
# [LewisCowles] I’m easy RE: Redis. I’ll close it.
# [LewisCowles] :+!
# [Michael_Beckwit ugh cookies
# [LewisCowles] haha