hhefesto / nuptialem

My wedding web page. I should post a blog post with a video walkthrough.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Contributions

Any are more than welcome.

The easiest way for me to add your contribution is through a pull request.

Development Environment

The rest of this README.md assumes you are in this environment.

# Be on channel NixOS 20.09 (I'll provide a propper nix-shell if someone asks)
nix-shell -p haskellPackages.yesod-bin nixops stack

Deployment

Prerequisites

  1. Have a Google Compute Engine account with the credentials specified on nuptialem-gce.nix (proyect, serviceAccount, accessKey).
  2. Open firewall of that project (option on the Google Cloud Platform under Networking > VPC network > Firewall: (Ingress; Apply to all; IP ranges: 0.0.0.0/0; tcp:20,80,3000,443,5432; udp:20,80,3000,443,5432; Allow; 1000; default; Off )) 1.1 I surely opened more ports than needed, if you see a problem with this, do tell.

Steps

cd /path/to/project/nuptialem
nixops create nuptialem-configuration.nix nuptialem-gce.nix -d nuptialem-gce
nixops deploy -d nuptialem-gce

DNS

On nuptialem-configuration.nix your domain name is specified. You have to have an A Record pointing to the IP of your deployment.

To get the depoloyment's IP do:

nixops info -d nuptialem-gce

Development

Start a development server (i.e. local development) with:

yesod devel

As your code changes, your site will be automatically recompiled and redeployed to localhost.

Sometimes it just stalls. If that is the case, exit hitting Ctrl-c a couple of times, do a stack build (even just half way through) and retry yesod devel

Documentation

Getting Help

About

My wedding web page. I should post a blog post with a video walkthrough.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Haskell 43.6%Language:CSS 41.4%Language:HTML 10.8%Language:Nix 2.3%Language:JavaScript 1.9%Language:Emacs Lisp 0.1%