diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 91e9232..aedac84 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -44,12 +44,12 @@ The main differences between the release and debug mode are: - an additional endpoint is available at `/force-exit` which force restarts the backend service - static resources (including front end app) are not being served in debug build. -Captain by default uses `captain.x` as its root domain. It's not always needed, but if you need a root +Captain by default uses `captain.localhost` as its root domain. It's not always needed, but if you need a root domain for your development, you can simply run a local DNS server on your local machine and point `*.captain-x` (wild card domain) to your local IP. A simple `hosts` change won't be useful as we need a wildcard entry. On ubuntu 16, it's as simple of editing this file: `/etc/NetworkManager/dnsmasq.d/dnsmasq-localhost.conf` (create if does not exist) -And add this line to it: `address=/captain.x/192.168.1.2` where `192.168.1.2` is your local IP address. +And add this line to it: `address=/captain.localhost/192.168.1.2` where `192.168.1.2` is your local IP address. To make sure you have dnsmasq, you can run `which dnsmasq` on your terminal, if it's available, path of it will be printed on the terminal, otherwise, there won't be anything printed on your terminal. @@ -61,7 +61,7 @@ frontend app [README.md](https://github.com/githubsaturn/captainduckduck/tree/ma Change the endpoint for the backend server to your debug instance by editing this file: `/captainduckduck/app-frontend/src/js/captain/apiManager.js` and uncomment the correct line -- `BASE_API = 'http://captain.captain.x/api/v1/'` if you have dnsmasq installed +- `BASE_API = 'http://captain.captain.localhost/api/v1/'` if you have dnsmasq installed - `BASE_API = 'http://127.0.0.1:3000/api/v1/'` if you don't have dnsmasq installed You need to hardcode a logged in user to avoid having to log it with every refresh of the page. To do so, steal the auth token from the the network inspector on Chrome and hardcode it in apiManager.js.