/mr.davidbaker.is

Kinda a personal API

Primary LanguageShell

Deployment

⚠️🔮 need to work on a smoother flow here, but this is working

  1. Build tarball (distillery release) in Docker container

    docker build ./ -t mr-build -f Dockerfile.build
    
  2. Create a container of that build (not sure this is exactly what this step does...) which will spit out a long hash string [HASH]

    docker create mr-build:latest
    
  3. copy stuff from container to host filesystem

    docker cp [HASH]:app/\_build ./dump
    
  4. Manually go into finder and move ./dump/_build/prod/rel/mr/bin and ./dump/_build/prod/rel/mr/releases/0.0.1/mr.tar.gz to the root this directory

  5. Deploy to now, which uses Dockerfile

    now
    
  6. Do aliasing.


Mr

To start your Phoenix server:

  • Install dependencies with mix deps.get
  • Install Node.js dependencies with cd assets && npm install
  • Start Phoenix endpoint with mix phx.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

Learn more