Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Quickly get started developing clustered Elixir applications for cloud environments.

NotificationsYou must be signed in to change notification settings

CrowdHailer/elixir-on-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quickly get started developing clustered Elixir applications for cloud environments.

See a walkthrough of developing a chat application from this template

This project template provides a set of sensible defaults for a new application designed to be cloud native.It includes:

  • A main servicewww, this serves the main content offered by your application.
  • Secure HTTP/2 content delivery withAce web server.
  • Code reloading in development environment usingExSync.
  • Automatic clustering. Setup fordocker-cloud other environments coming soon.
  • Web based metrics, monitoring and observing withWobserver.
  • Documentation driven development withRaxx.ApiBlueprint.
  • Integration test suit running from theintegration service.

Get Started

To use this template docker and docker-compose need to be installed on your machine.

Clone this repository

Change project-name to your projects name.

git clone <url> <project-name>cd <project-name>

Delete git history.

rm -r .git

Fetch dependencies

docker-compose run --rm www mix deps.get

All mix tasks for a service can be run this way, such as tests for a single service.

Run all services

docker-compose up

Use-d to run in the background.Use--build to ensure images are rebuilt.Usedocker-compose down to stop all services.

Run integration tests

docker-compose \-f docker-compose.yml \-f docker-compose-test.yml \run integration /bin/bash -c "mix deps.get; mix test"

The-f flag specifies a compose file to use when starting services.

Attach iex session

docker ps# Find container-id to attach to.dockerexec -it<container-id> sh bin/debug# in iex shelliex(debug@<hostname>)1> Node.connect(:"app@<hostname>")

[8]ページ先頭

©2009-2025 Movatter.jp