New IHP Case Study: How AirPV is making the process of going solar easier and better value with IHP
Create a new thread +
Discriminating unions
Hi! I'm new to Haskell and I'm really impressed by the modelling power of discriminating unions. Fex a zapier clone might do something like this Zap = new Record {id, trigger, actions} data trigger = timerTrigger | httpTriger ... et…
Add Response
Pulling production data base into local instsance
Joachim Breitner
I’d like to pull the data from the IHPCloud deployed instance into my local database. I tried pg_dump "postgresql://…?host=database-cloud.cephcue7lnqe.eu-central-1.rds.amazonaws.com" | make psql but the output isn’t promising: SE…
Add Response
Allowing Cross-Origin Resource Sharing
Marc Linsangan
Hello. How should we set the configuration to allow CORS? I followed the examples in the API documentation by adding "option Cors.simpleCorsResourcePolicy" but couldn't make it work. Can anyone please show how to do it correct…
Add Response
Provide support for the new Node-less Tailwind CSS // Then default to Tailwind?
Daniel Clarke
Tailwind CSS can now be used without Node (details: https://tailwindcss.com/blog/standalone-cli). Other frameworks like Phoenix and Rails already provide support for this new Node-less Tailwind, with Rails creator DHH being particulary exci…
Add Response
How to configure a favicon?
Joachim Breitner
Should I just manually add a meta tag to Web/View/Layout.hs, or is there something more idiomatic? (An answer to that question might be useful on https://ihp.digitallyinduced.com/Guide/helpful-tips.html) …
Add Response
Error installing/running latest IHP on Mac with M1 processor
rwkhan
Command I'm running to upgrade to latest IHP: nix-shell --run 'make -B .envrc build/ihp-lib' Error I'm getting: error: cycle detected in build of '/nix/store/jqfx8z69709v0mh0qg4ybiahiwzv5zlb-ghcid-0.8.7.drv' in the r…
Add Response
unrecognized configuration parameter "rls.ihp_user_id"
Manborough
Hi everyone, I'm getting an issue when I try to create a post with a foreign key relationship to the users table. The user_id column has a default value of ihp_user_id(). I can create posts again when I remove the column. This is the…
Add Response
Getting error updating IHP to 0.19
rwkhan
I run IHP on a mac with M1 processor so now that they're finally supported I'm getting an error when I try to update using the following command: Command: nix-shell --run 'make -B .envrc build/ihp-lib' Error I'm getting …
Add Response
Reactive HTML forms
JGarber
If I need to implement reactive HTML forms in an IHP project how would I go about doing that? Thanks. …
Add Response
Running IHP as a systemd service on NixOS
Lillo PRO
Hi! This might be mostly systemd related, but I'm trying to run IHP as a systemd service on a NixOS webserver, eventually on DigitalOcean for a service I am making. Currently testing locally on my NixOS machine with a fresh IHP project.…
Add Response