Browse Source

This fix some fuckery

pull/100/head
squeaky otter 2 years ago
parent
commit
6f41d2fd09
Signed by: dashie GPG Key ID: C2D57B325840B755
  1. 8
      DEVELOPMENT.md
  2. 2
      front/config/index.js
  3. 5
      front/yarn.lock

8
DEVELOPMENT.md

@ -31,15 +31,11 @@ Create `front/config/local.json` with:
```json
{
"target": "http://reel2bits.dev.lan.sigpipe.me/"
"target": "http://127.0.0.1:5000/"
}
```
Uses whatever dns you want, but it needs to match the AP_DOMAIN in `config.py`.
Also add that dns into your `/etc/hosts`.
And you need to run it proxified by nginx or whatever else.
Also comment `SERVER_NAME` and `BASE_URL` in `config.py` when in dev.
Run the front with: `cd front && npm run dev`

2
front/config/index.js

@ -11,7 +11,7 @@ try {
console.log('Local dev server settings not found (/config/local.json)')
}
const target = settings.target || 'http://localhost:4000/'
const target = settings.target || 'http://localhost:5000/'
module.exports = {
build: {

5
front/yarn.lock

@ -8525,11 +8525,6 @@ websocket-extensions@>=0.1.1:
resolved "https://registry.yarnpkg.com/websocket-extensions/-/websocket-extensions-0.1.3.tgz#5d2ff22977003ec687a4b87073dfbbac146ccf29"
integrity sha512-nqHUnMXmBzT0w570r2JpJxfiSD1IzoI+HGVdd3aZ0yNi3ngvQ4jv1dtHt5VGxfI2yj5yqImPhOK4vmIh2xMbGg==
whatwg-fetch@^2.0.3:
version "2.0.4"
resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.4.tgz#dde6a5df315f9d39991aa17621853d720b85566f"
integrity sha512-dcQ1GWpOD/eEQ97k66aiEVpNnapVj90/+R+SXTPYGHpYBBypfKJEQjLrvMZ7YXbKm21gXd4NcuxUTjiv1YtLng==
which-module@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a"

Loading…
Cancel
Save