abdulrehman7621 / Trello-Clone

0 stars 0 forks source link

problem to connect my phoenix project with postgresql #1

Open abdulrehman7621 opened 7 years ago

abdulrehman7621 commented 7 years ago

` screenshot 31 use Mix.Config

For development, we disable any cache and enable

debugging and code reloading.

#

The watchers configuration can be used to run external

watchers to your application. For example, we use it

with brunch.io to recompile .js and .css sources.

config :blog, Blog.Endpoint, http: [port: System.get_env("PORT") || 4000], debug_errors: true, code_reloader: true, check_origin: false, watchers: [node: ["node_modules/brunch/bin/brunch", "watch", "--stdin", cd: Path.expand("../", DIR)]]

Watch static and templates for browser reloading.

config :blog, Blog.Endpoint, live_reload: [ patterns: [ ~r{priv/static/.(js|css|png|jpeg|jpg|gif|svg)$}, ~r{priv/gettext/.(po)$}, ~r{web/views/.(ex)$}, ~r{web/templates/.(eex)$} ] ]

Do not include metadata nor timestamps in development logs

config :logger, :console, format: "[$level] $message\n"

Set a higher stacktrace during development. Avoid configuring such

in production as building large stacktraces may be expensive.

config :phoenix, :stacktrace_depth, 20

Configure your database

config :blog, Blog.Repo, adapter: Ecto.Adapters.Postgres, username: "postgres", password: "postgres", database: "blog_dev", hostname: "localhost", pool_size: 10 `

abdulrehman7621 commented 7 years ago

Issue Resolved by just adding a port number in your config>dev.exs file

capturee