defmodule Cobalt.Dynamo do
  use Dynamo

  config :dynamo,
    # The environment this Dynamo runs on
    env: Mix.env,

    # The OTP application associated with this Dynamo
    otp_app: :cobalt,

    # The endpoint to dispatch requests to
    endpoint: ApplicationRouter,

    # The route from which static assets are served
    # You can turn off static assets by setting it to false
    static_route: "/static"

  # config :dynamo,
  #   session_store: Session.CookieStore,
  #   session_options:
  #     [ key: "_cobalt_session",
  #       secret: "dPFxY9JxtCRtXUpWOEd0+YRIUwlnG4tcuYbUza5AIKXxhFhiCAyR4NYCDD1C5YLt"]

  config :dynamo,
    session_store: Session.ETSStore,
    session_options: [
      table: :cobalt_sessions,
      key: "_cobalt_session"
    ]

  # Default functionality available in templates
  templates do
    use Dynamo.Helpers
  end
end

defmodule Cobalt.Dynamo do
  use Dynamo

  config :dynamo,
    # The environment this Dynamo runs on
    env: Mix.env,

    # The OTP application associated with this Dynamo
    otp_app: :cobalt,

    # The endpoint to dispatch requests to
    endpoint: ApplicationRouter,

    # The route from which static assets are served
    # You can turn off static assets by setting it to false
    static_route: "/static"

  # config :dynamo,
  #   session_store: Session.CookieStore,
  #   session_options:
  #     [ key: "_cobalt_session",
  #       secret: "dPFxY9JxtCRtXUpWOEd0+YRIUwlnG4tcuYbUza5AIKXxhFhiCAyR4NYCDD1C5YLt"]

  config :dynamo,
    session_store: Session.ETSStore,
    session_options: [
      table: :cobalt_sessions,
      key: "_cobalt_session"
    ]

  if Mix.env == :test do
    config :server, port: 4001
  end

  # Default functionality available in templates
  templates do
    use Dynamo.Helpers
  end
end

Test server should start in port 4001
Test server should start in port 4001

louishawkins/mogo-chat,sashafklein/bloc-mogo,di-stars/mogo-chat,HashNuke/mogo-chat,HashNuke/mogo-chat,louishawkins/mogo-chat,HashNuke/mogo-chat,louishawkins/mogo-chat,di-stars/mogo-chat,sashafklein/bloc-mogo,sashafklein/bloc-mogo,di-stars/mogo-chat