mirror of
https://github.com/ansible/awx.git
synced 2026-02-23 14:05:59 -03:30
Merge pull request #2435 from ryanpetrello/webpack-ui-external
add instructions for running the UI webpack server on an external host
This commit is contained in:
@@ -41,6 +41,28 @@ When using Docker for Mac or native Docker on Linux:
|
|||||||
$ make ui-docker
|
$ make ui-docker
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you normally run awx on an external host/server (in this example, `awx.local`),
|
||||||
|
you'll need to reconfigure the webpack proxy slightly for `make ui-docker` to
|
||||||
|
work:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
/awx/settings/development.py
|
||||||
|
+
|
||||||
|
+CSRF_TRUSTED_ORIGINS = ['awx.local:8043']
|
||||||
|
|
||||||
|
awx/ui/build/webpack.watch.js
|
||||||
|
- host: '127.0.0.1',
|
||||||
|
+ host: '0.0.0.0',
|
||||||
|
+ disableHostCheck: true,
|
||||||
|
|
||||||
|
/awx/ui/package.json
|
||||||
|
@@ -7,7 +7,7 @@
|
||||||
|
"config": {
|
||||||
|
...
|
||||||
|
+ "django_host": "awx.local"
|
||||||
|
},
|
||||||
|
```
|
||||||
|
|
||||||
When using Docker Machine:
|
When using Docker Machine:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user