make default configuration work with awx development api server

This commit is contained in:
Jake McDermott
2018-09-26 18:06:30 -04:00
parent a73c1dd28e
commit 065813ebc0
3 changed files with 5 additions and 17 deletions

View File

@@ -1,19 +1,5 @@
# AWX-PF
## Setup
```shell
# Configure the external tower or awx intance:
ssh -t your.external.tower.host <<-EOSH
sudo -i -u root
echo "CSRF_TRUSTED_ORIGINS = ['your.external.tower.host:443']" >> /etc/tower/settings.py
ansible-tower-service restart
EOSH
# Then update the project webpack configuration:
sed 's/localhost:443/your.external.tower.host:443/g' webpack.config.js > config.js
mv config.js webpack.config.js
```
## Usage
* `git clone git@github.com:ansible/awx-pf.git`
@@ -21,3 +7,5 @@ mv config.js webpack.config.js
* npm install
* npm start
* visit `https://127.0.0.1:3000/`
**note:** These instructions assume you have the [awx](https://github.com/ansible/awx/blob/devel/CONTRIBUTING.md#running-the-environment) development api server up and running at `localhost:8043`.