This file contains hidden or 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
| /*! | |
| * @preserve | |
| * | |
| * Readmore.js jQuery plugin | |
| * Author: @jed_foster | |
| * Project home: http://jedfoster.github.io/Readmore.js | |
| * Licensed under the MIT license | |
| * | |
| * Debounce function from http://davidwalsh.name/javascript-debounce-function | |
| */ |
This file contains hidden or 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
| def application do | |
| [..., | |
| applications: [..., :edeliver]] | |
| end | |
| defp deps do | |
| [ | |
| ... | |
| {:edeliver, "~> 1.4.2"}, | |
| {:distillery, "~> 1.4"}] |
This file contains hidden or 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
| APP="deploy_phoenix" | |
| BUILD_HOST="188.166.182.170" | |
| BUILD_USER="deploy" | |
| BUILD_AT="/tmp/edeliver/$APP/builds" | |
| RELEASE_DIR="/tmp/edeliver/$APP/builds/_build/prod/rel/$APP" | |
| # prevent re-installing node modules; this defaults to "." | |
| GIT_CLEAN_PATHS="_build rel priv/static" |
This file contains hidden or 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
| # ... | |
| config :deploy_phoenix, DeployPhoenix.Endpoint, | |
| http: [port: 8888], | |
| url: [host: "example.com", port: 80], | |
| cache_static_manifest: "priv/static/manifest.json" | |
| # ... | |
| config :phoenix, :serve_endpoints, true | |
| # ... |
This file contains hidden or 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 :deploy_phoenix, DeployPhoenix.Endpoint, | |
| secret_key_base: "<<SECRET_GOES_HERE>>" | |
| # Configure your database | |
| config :deploy_phoenix, DeployPhoenix.Repo, | |
| adapter: Ecto.Adapters.Postgres, | |
| username: "deployphoenix", | |
| password: "mypassword", |
This file contains hidden or 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
| upstream deploy_phoenix { | |
| server 127.0.0.1:8888; | |
| } | |
| map $http_upgrade $connection_upgrade { | |
| default upgrade; | |
| '' close; | |
| } | |
| server { |
This file contains hidden or 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
| [Unit] | |
| Description=Phoenix server for DeployPhoenix app | |
| After=network.target | |
| [Service] | |
| User=deploy | |
| Group=deploy | |
| Restart=on-failure | |
| Environment=HOME=/home/deploy/deploy_phoenix |
This file contains hidden or 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
| <div class="jumbotron"> | |
| <h2><%= gettext "Welcome to %{name}", name: "Phoenix!" %></h2> | |
| <p class="lead">This is a test deployment.</p> | |
| </div> | |
| <!-- ... --> |
This file contains hidden or 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
| def project do | |
| [app: :deploy_phoenix, | |
| version: "0.1.0", | |
| # ... | |
| ] | |
| end | |
| # ... |
This file contains hidden or 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
| Model.new(:deploy_phoenix_prod_backup, 'deploy_phoenix Production Backup') do | |
| database PostgreSQL do |db| | |
| db.name = "deployphoenix_prod" | |
| db.username = "deployphoenix" | |
| db.password = "mypassword" | |
| db.host = "localhost" | |
| db.port = 5432 | |
| # db.socket = "/tmp/pg.sock" | |
| db.skip_tables = [] | |
| # db.only_tables = ["only", "these", "tables"] |
OlderNewer