diff --git a/README.md b/README.md index d53d659cf6..0ba6e3eb84 100644 --- a/README.md +++ b/README.md @@ -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`. diff --git a/package-lock.json b/package-lock.json index 98b6f435fc..c112cc7f45 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "tower-react", + "name": "awx-react", "version": "1.0.0", "lockfileVersion": 1, "requires": true, diff --git a/webpack.config.js b/webpack.config.js index a0b83dfb1e..1d1e1f535c 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,7 +1,7 @@ const webpack = require('webpack'); -const TARGET = 'https://localhost:443'; -const TARGET_PORT = 443; +const TARGET_PORT = 8043; +const TARGET = `https://localhost:${TARGET_PORT}`; module.exports = { entry: './src/index.js',