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, |
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" |
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 |
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: |
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 |
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 |
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} |
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" |
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)) |
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