Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 1.78 KB

README.md

File metadata and controls

49 lines (30 loc) · 1.78 KB

Wetter

To start your Phoenix server:

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.create && mix ecto.migrate
  • 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.

(Setup)

install docker-py: pip install docker

Server setup

Refer to `git/krystofbe-infrastructure`

AWS ECR

Retrieve the login command to use to authenticate your Docker client to your registry. Use the AWS CLI:

aws ecr get-login-password --region eu-central-1 | docker login --username AWS --password-stdin 713759161179.dkr.ecr.eu-central-1.amazonaws.com

Note: If you receive an "Unknown options: --no-include-email" error when using the AWS CLI, ensure that you have the latest version installed. Learn more Build your Docker image using the following command. For information on building a Docker file from scratch see the instructions here . You can skip this step if your image is already built:

docker build -t wetter .

After the build completes, tag your image so you can push the image to this repository:

docker tag wetter:latest 713759161179.dkr.ecr.eu-central-1.amazonaws.com/wetter:latest

Run the following command to push this image to your newly created AWS repository:

docker push 713759161179.dkr.ecr.eu-central-1.amazonaws.com/wetter:latest

Learn more