laconic.com/README.md
2025-02-19 11:49:33 -05:00

1.6 KiB

Laconic

Repository for Laconic's website, hosted on internal infrastructure.

To update it; ensure you have access to erasmus and follow the instructions for production, below.

Local development

To build and serve this site on your local machine:

Install yarn

e.g,:

npm install -g yarn

Set env

export NEXT_PUBLIC_DATOCMS_BYPASS_TYPE="local_json"

Install the dependencies:

yarn

Serve

Run the development server

yarn dev

Production

Uses stack orchestrator. For example:

laconic-so --stack laconic-dot-com setup-repositories
laconic-so --stack laconic-dot-com build-containers 
laconic-so --stack laconic-dot-com deploy init --output laconic-website-spec.yml

Then, edit spec file:

stack: laconic-dot-com
deploy-to: k8s
kube-config: /home/.kube/config.yaml
image-registry: container-registry.apps.vaasl.io
network:
  ports:
    laconic-dot-com:
     - '3000'
  http-proxy:
    - host-name: laconic.apps.vaasl.io
      routes:
        - path: '/'
          proxy-to: laconic-dot-com:3000

Create a deployment, push the image, and start the pod:

laconic-so --stack laconic-dot-com deploy create --spec-file laconic-website-spec.yml --deployment-dir lx-website
laconic-so deployment --dir lx-website push-images
laconic-so deployment --dir lx-website start

To deploy update, go to /cerc/laconic.com, pull the correct commit, then:

laconic-so --stack laconic-dot-com build-containers 
laconic-so deployment --dir lx-website push-images
laconic-so deployment --dir lx-website stop
laconic-so deployment --dir lx-website start