Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions .circleci/config.yml

This file was deleted.

3 changes: 0 additions & 3 deletions Gemfile

This file was deleted.

22 changes: 0 additions & 22 deletions Gemfile.lock

This file was deleted.

3 changes: 0 additions & 3 deletions apps/buckler_bot/config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,4 @@ config :buckler_bot, :telegram,
config :buckler_bot,
loyalty_count: 3

config :buckler_bot, BucklerBot.Repo,
db_name: System.get_env("DB_NAME")

import_config "#{Mix.env}.exs"
7 changes: 2 additions & 5 deletions apps/db/config/prod.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ use Mix.Config

config :db, DB.Repo,
adapter: Ecto.Adapters.Postgres,
database: "buckler",
username: System.get_env("BUCKLER_SQL_USER"),
password: System.get_env("BUCKLER_PASS"),
hostname: System.get_env("BUCKLER_HOST"),
port: "5432",
url: {:system, "DATABASE_URL"},
pool_size: 2,
loggers: []

config :logger, level: :info
31 changes: 0 additions & 31 deletions buckler_bot.eye

This file was deleted.

47 changes: 0 additions & 47 deletions config/deploy.rb

This file was deleted.

2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ defmodule Buckler.Mixfile do
# and cannot be accessed from applications inside the apps folder
defp deps do
[
{:distillery, "~> 1.3", runtime: false},
{:distillery, "~> 2.0", runtime: false}
]
end

Expand Down
3 changes: 2 additions & 1 deletion mix.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
%{
"agala": {:hex, :agala, "3.0.0", "00eba9262858c65b835cc9eebdf488137c70d9a26d1473349663b1a8a930d218", [:mix], [], "hexpm"},
"agala_telegram": {:hex, :agala_telegram, "3.0.0", "43195cd75f6f350ebdb60a16542080dd531827f6f4b3d3f3deb18f4114c6486e", [:mix], [{:agala, "~> 3.0", [hex: :agala, repo: "hexpm", optional: false]}, {:construct, "~> 1.0", [hex: :construct, repo: "hexpm", optional: false]}, {:hackney, "~> 1.13", [hex: :hackney, repo: "hexpm", optional: false]}, {:httpoison, "~> 1.2", [hex: :httpoison, repo: "hexpm", optional: false]}, {:jason, "~> 1.1", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm"},
"artificery": {:hex, :artificery, "0.4.1", "90b1fcedb9034853b36dbea2174f9fc1172bd50b0686a723178103def5c9c1c8", [:mix], [], "hexpm"},
"certifi": {:hex, :certifi, "2.3.1", "d0f424232390bf47d82da8478022301c561cf6445b5b5fb6a84d49a9e76d2639", [:rebar3], [{:parse_trans, "3.2.0", [hex: :parse_trans, repo: "hexpm", optional: false]}], "hexpm"},
"connection": {:hex, :connection, "1.0.4", "a1cae72211f0eef17705aaededacac3eb30e6625b04a6117c1b2db6ace7d5976", [:mix], [], "hexpm"},
"construct": {:hex, :construct, "1.1.0", "095273c4f383590efa653bbe3d44766e68d35a0617602c58e62ab537df283fff", [:mix], [], "hexpm"},
"db_connection": {:hex, :db_connection, "1.1.3", "89b30ca1ef0a3b469b1c779579590688561d586694a3ce8792985d4d7e575a61", [:mix], [{:connection, "~> 1.0.2", [hex: :connection, repo: "hexpm", optional: false]}, {:poolboy, "~> 1.5", [hex: :poolboy, repo: "hexpm", optional: true]}, {:sbroker, "~> 1.0", [hex: :sbroker, repo: "hexpm", optional: true]}], "hexpm"},
"decimal": {:hex, :decimal, "1.5.0", "b0433a36d0e2430e3d50291b1c65f53c37d56f83665b43d79963684865beab68", [:mix], [], "hexpm"},
"distillery": {:hex, :distillery, "1.5.3", "b2f4fc34ec71ab4f1202a796f9290e068883b042319aa8c9aa45377ecac8597a", [:mix], [], "hexpm"},
"distillery": {:hex, :distillery, "2.0.12", "6e78fe042df82610ac3fa50bd7d2d8190ad287d120d3cd1682d83a44e8b34dfb", [:mix], [{:artificery, "~> 0.2", [hex: :artificery, repo: "hexpm", optional: false]}], "hexpm"},
"earmark": {:hex, :earmark, "1.2.5", "4d21980d5d2862a2e13ec3c49ad9ad783ffc7ca5769cf6ff891a4553fbaae761", [:mix], [], "hexpm"},
"ecto": {:hex, :ecto, "2.2.10", "e7366dc82f48f8dd78fcbf3ab50985ceeb11cb3dc93435147c6e13f2cda0992e", [:mix], [{:db_connection, "~> 1.1", [hex: :db_connection, repo: "hexpm", optional: true]}, {:decimal, "~> 1.2", [hex: :decimal, repo: "hexpm", optional: false]}, {:mariaex, "~> 0.8.0", [hex: :mariaex, repo: "hexpm", optional: true]}, {:poison, "~> 2.2 or ~> 3.0", [hex: :poison, repo: "hexpm", optional: true]}, {:poolboy, "~> 1.5", [hex: :poolboy, repo: "hexpm", optional: false]}, {:postgrex, "~> 0.13.0", [hex: :postgrex, repo: "hexpm", optional: true]}, {:sbroker, "~> 1.0", [hex: :sbroker, repo: "hexpm", optional: true]}], "hexpm"},
"ex_doc": {:hex, :ex_doc, "0.18.4", "4406b8891cecf1352f49975c6d554e62e4341ceb41b9338949077b0d4a97b949", [:mix], [{:earmark, "~> 1.1", [hex: :earmark, repo: "hexpm", optional: false]}], "hexpm"},
Expand Down
16 changes: 8 additions & 8 deletions rel/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# They can then be used by adding `plugin MyPlugin` to
# either an environment, or release definition, where
# `MyPlugin` is the name of the plugin module.
Path.join(["rel", "plugins", "*.exs"])
~w(rel plugins *.exs)
|> Path.join()
|> Path.wildcard()
|> Enum.map(&Code.eval_file(&1))

Expand All @@ -13,7 +14,7 @@ use Mix.Releases.Config,
default_environment: Mix.env()

# For a full list of config options for both releases
# and environments, visit https://hexdocs.pm/distillery/configuration.html
# and environments, visit https://hexdocs.pm/distillery/config/distillery.html


# You may define one or more environments in this file,
Expand All @@ -30,15 +31,14 @@ environment :dev do
# dev mode.
set dev_mode: true
set include_erts: false
set cookie: :"OOjxZrybU>O}8z<^fsx2jlQ}^RgV|XXXcaJtRsKPkei2*,ot8<D$o4iI><v2*G:y"
set cookie: :"nTC0O=O5|hn7@2T[]7`[k|qclg.`sVw~YV6g_tA2r&,3/v1m=>F~@/7Hzu@NAsyQ"
end

environment :prod do
set vm_args: "rel/vm.args"
set include_erts: true
set include_src: false
set cookie: :"s<jYNRfYQEG=[bJ*7b(!|6tZ<fHrEc>2WC{LZ4xjxkAmR%pBgui=]Q%f/Y`5(wdj"
set output_dir: "rel/buckler_bot"
set cookie: :"/Sye2@KXe;ea*<V*:|2]`LU&RIz_s}h2y2S3=aQ=,PO,[I]9N[&g9gslg:jP4GB="
set vm_args: "rel/vm.args"
end

# You may define one or more releases in this file.
Expand All @@ -50,7 +50,7 @@ release :buckler do
set version: "0.1.0"
set applications: [
:runtime_tools,
buckler_bot: :permanent
buckler_bot: :permanent,
db: :permanent
]
end

3 changes: 3 additions & 0 deletions rel/plugins/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.*
!*.exs
!.gitignore