Micro Costs | Instance Active | concurrency | Monthly | Total |
---|---|---|---|---|
0.0076 EUR / hour | 4 hours | 5 | 25 days | 3.8 EUR |
| Storage | Tranfer (OUT) |
defmodule Application.Router do | |
use Application.Web, :router | |
scope "/", Application do | |
post "/#{botkey}",PageController, :index | |
end | |
end |
defmodule Application.Router do | |
use Application.Web, :router | |
scope "/", Application do | |
post "/#{botkey}",PageController, :index | |
end | |
end |
image: elixir:latest | |
services: | |
- postgres:latest | |
variables: | |
POSTGRES_DB: test_test | |
POSTGRES_HOST: postgres | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: "postgres" |
deploy: | |
image: elixir:1.7 | |
before_script: | |
- mix local.hex --force | |
- mix local.rebar --force | |
- mix deps.get | |
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' | |
- eval $(ssh-agent -s) | |
- echo "$SSH_PRIVATE_KEY_C" | tr -d '\r' | ssh-add - > /dev/null | |
- mkdir -p ~/.ssh |
docs-md: | |
stage: deploy | |
allow_failure: true | |
script: | |
- git clone {repo} doc | |
- rm -rf doc/* | |
- mix deps.get | |
- mix docs -f md | |
- cd doc | |
- git config --global user.email "ops@ahamtech.in" |
Poison.decode(payload) | |
Jason.decode(payload) | |
Jiffex.decode(payload) |
config :phoenix, :json_library, Poison | |
config :phoenix, :json_library, Jason | |
config :phoenix, :json_library, Phoenix.Jiffy |
Operating System: macOS" | |
CPU Information: Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz | |
Number of Available Cores: 8 | |
Available memory: 16 GB | |
Elixir 1.7.0-dev | |
Erlang 21.0 | |
Benchmark suite executing with the following configuration: | |
warmup: 5 s | |
time: 30 s |