View mix.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule ExampleApp.Mixfile do | |
use Mix.Project | |
def project do | |
[ | |
app: :example_app, | |
version: version(), | |
elixir: "~> 1.2.0", | |
elixirc_paths: elixirc_paths(Mix.env), | |
compilers: [:phoenix, :gettext] ++ Mix.compilers, |
View config.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Mix.Config | |
config :example_app, | |
key1: "value1", | |
key2: "value2" | |
import_config "#{Mix.env}.exs" |
View cloud-boothook.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-boothook | |
#!/bin/sh | |
# Application config | |
cat <<EOF > /opt/example_app/app.conf | |
logger.level = info | |
Endpoint.url.host = "example.com" | |
Endpoint.url.port = 443 |
View circle.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
machine: | |
timezone: | |
Asia/Tokyo | |
services: | |
- docker | |
node: | |
version: 5.1.0 | |
dependencies: | |
cache_directories: |
View Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:trusty | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update -q | |
RUN apt-get -y install language-pack-ja openssl libssl-dev ncurses-dev curl git | |
RUN update-locale LANG=ja_JP.UTF-8 | |
# SSH | |
RUN mkdir -p /root/.ssh |
View test.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export MIX_ENV="test" | |
mix do deps.get, deps.compile, compile, test |
View get-prev-rel.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export APP="example_app" | |
aws s3 cp s3://example-app-packages/latest.tar.gz /tmp/${APP}.tar.gz | |
mkdir -p rel/${APP} && rm -rf rel/${APP}/* | |
tar zxvf /tmp/${APP}.tar.gz -C rel/${APP} |
View build-release.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -ex | |
mix do deps.get, deps.compile, compile | |
node -v | |
npm install | |
export MIX_ENV="prod" |
View deploy-to-staging.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -ex | |
export AWS_DEFAULT_REGION="ap-northeast-1" | |
SGID="sg-xxxxxxxx" | |
MYIP="`dig +short myip.opendns.com @resolver1.opendns.com`" | |
cd $(dirname $(readlink -f $0)) |
View deploy-policies.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "1", | |
"Effect": "Allow", | |
"Action": "s3:*", | |
"Resource": [ | |
"arn:aws:s3:::example-app-packages/*" | |
] |
OlderNewer