Skip to content

BryceHayden/local-picks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Env

Normally I wouldn't commit any of my .env files. But I didn't since it's easier than sharing access to a secure note in 1Password and having you create one yourself.

Login

PSQL Local Install

  • Install postgres

    • Mac:

      • brew install postgresql but this will spin up a db
      • brew install libpq will install only the client
    • Ubuntu: sudo apt install postgresql sudo apt-get install -y postgresql-client

  • Stop all postgres instances, sometimes they'll conflict with the docker instance.

    • sudo systemctl stop postgresql
  • Connect to Postgres via terminal:

    • psql postgresql://devchic:logchild@localhost:5432/resume

Docker Next JS Examples

Docker - Web (Local)

  • Create an image from the dockerfile
    • docker build -t test-image -f dockerfile.prod .
  • Initally run the image as a container, exposing port 3000 to your local machine
    • docker run -d --name test-image --restart=always -p 3000:3000 web-test

Docker - Nuke

  • Note if you alter the schemas & init scripts in db then you may need to nuke your volumes, etc.
    rm -rf ./db/_docker_ && \
    docker compose down --volumes && \
    docker volume prune -af && \
    docker system prune -af && \
    docker compose up -d --build --renew-anon-volumes

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published