hashrocket / gatling

Deployment tool for Phoenix apps
496 stars 17 forks source link

Unable to change domain of deployed app #54

Closed josephan closed 7 years ago

josephan commented 7 years ago

Hello I have deployed a Phoenix app on Digital Ocean with Gatling, Distillery, and Nginx but I wanted to change the domain name of my application but the changes are not reflected even after restarting Nginx and the Daemon process.

The following is my configuration config/prod.exs:

config :kappamon, Kappamon.Endpoint,
  http: [port: {:system, "PORT"}],
  url: [scheme: "http", host: "kappamon.com", port: 80],
  server: true,
  root: ".",
  version: Mix.Project.config[:version],
  cache_static_manifest: "priv/static/manifest.json"

nginx.conf:

server {
  listen 80;
  server_name kappamon.com;
}

domains:

kappamon.com

My DNS service provider is Namecheap so I have the following configuration screen shot 2017-06-02 at 11 04 08 am

and so I just get the Nginx welcome page screen shot 2017-06-02 at 11 14 47 am

Another weird thing is that the original domain kappa.apitome.ca is working perfectly fine but kappamon.com is not working.

josephan commented 7 years ago

I was able to fix this by editing the file, /etc/nginx/sites-available/<app-name>, in my VPS to the new domain.