<commit_before>use Mix.Config

# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include the path to a manifest
# containing the digested version of static files. This
# manifest is generated by the mix phoenix.digest task
# which you typically run after static files are built.
config :mbta, Mbta.Endpoint,
  http: [port: {:system, "PORT"}],
  url: [scheme: "https", host: "elixir-react-train-schedule.herokuapp.com", port: 443],
  force_ssl: [rewrite_on: [:x_forwarded_proto]],
  cache_static_manifest: "priv/static/manifest.json",
  secret_key_base: System.get_env("SECRET_KEY_BASE")

# Do not print debug messages in production
config :logger, level: :info

# Configure your database using environment variables
config :mbta, Mbta.Repo,
  adapter: Ecto.Adapters.Postgres,
  url: System.get_env("DATABASE_URL"),
  pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
  ssl: true

# ## SSL Support<commit_msg>added webpack watchers to prod.exs<commit_after>use Mix.Config

# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include the path to a manifest
# containing the digested version of static files. This
# manifest is generated by the mix phoenix.digest task
# which you typically run after static files are built.
config :mbta, Mbta.Endpoint,
  http: [port: {:system, "PORT"}],
  url: [scheme: "https", host: "elixir-react-train-schedule.herokuapp.com", port: 443],
  force_ssl: [rewrite_on: [:x_forwarded_proto]],
  cache_static_manifest: "priv/static/manifest.json",
  secret_key_base: System.get_env("SECRET_KEY_BASE"),
  watchers: [{"node", [
                     "node_modules/webpack/bin/webpack.js",
                     "--watch-stdin",
                     "--colors"
                   ]},
                   {"node", [
                     "node_modules/webpack/bin/webpack.js",
                     "--watch-stdin",
                     "--colors",
                     "--config",
                     "webpack.server.config.js"
                   ]}]

# Do not print debug messages in production
config :logger, level: :info

# Configure your database using environment variables
config :mbta, Mbta.Repo,
  adapter: Ecto.Adapters.Postgres,
  url: System.get_env("DATABASE_URL"),
  pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
  ssl: true

# ## SSL Support
{'fraction_non_alphanumeric': 0.1080599144079886, 'fraction_numerical': 0.004992867332382311, 'mean_word_length': 3.3087557603686637, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7610177', 'n_tokens_mistral': 849, 'n_tokens_neox': 811, 'n_words': 274}