Skip to content

Commit

Permalink
Merge pull request #46 from alexschiller/master
Browse files Browse the repository at this point in the history
Add WATERBUTLER notes to windows.rst
  • Loading branch information
brianjgeiger committed Nov 9, 2016
2 parents 6cf80ed + 464edc1 commit 64be1b6
Showing 1 changed file with 39 additions and 9 deletions.
48 changes: 39 additions & 9 deletions docs/osf/windows.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,48 @@ https://docs.google.com/document/d/1BJ20XDHlVVeW_pRgsNUMKAJg6r3yoVWAZCZ9Sf-Idzw/

``API_DOMAIN = PROTOCOL + 'osf.localhost:8000/'``

2. In ``defaults.py`` change:
2. In your mac OSF dist ``local.py`` add:

``CAS_SERVER_URL = 'http://osf.localhost:8080'``

3. Once your VM is working, open the windows commandline and run: ``ipconfig`` and note the Default Gateway IP (e.g., 10.0.2.2)

4. Run ``explorer C:\Windows\System32\drivers\etc`` and a files window will open.

5. Right click ``hosts`` and click ``properties``. Under the ``Security`` tab, under groups click ``Users`` and grant full control (fine for a VM just used for development, but not advised for normal machines)

6. Open ``hosts`` with notepad and add to the bottom of the file:
3. If you need WATERBUTLER to work:
a. In your mac OSF dist ``local.py`` add:

``WATERBUTLER_URL = 'http://osf.localhost:7777'``

b. In your WATERBUTLER repo ``waterbutler/auth/osf/settings.py`` change:

``API_URL = config.get('API_URL', 'http://osf.localhost:5000/api/v1/files/auth/')``

c. In your WATERBUTLER repo ``waterbutler/serser/setting.py`` change:

``ADDRESS = config.get('ADDRESS', 'osf.localhost')``

``DOMAIN = config.get('DOMAIN', "http://osf.localhost:7777")``

4. If you need MFR to work:
a. In your mac OSF dist ``local.py`` add:

``MFR_SERVER_URL = 'http://osf.localhost:7778'``

b. In your MFR repo ``mfr/server/settings.py`` change:

``ADDRESS = config.get('ADDRESS', 'osf.localhost')``

``ALLOWED_PROVIDER_DOMAINS = config.get('ALLOWED_PROVIDER_DOMAINS', ['http://osf.localhost:5000/', 'http://osf.localhost:7777/'])``

b. In your WATERBUTLER repo ``waterbutler/auth/osf/settings.py`` change:

``MFR_DOMAIN = analytics_config.get('MFR_DOMAIN', 'http://osf.localhost:7778').rstrip('/')``

5. Once your VM is working, open the windows commandline and run: ``ipconfig`` and note the Default Gateway IP (e.g., 10.0.2.2)

6. Run ``explorer C:\Windows\System32\drivers\etc`` and a files window will open.

7. Right click ``hosts`` and click ``properties``. Under the ``Security`` tab, under groups click ``Users`` and grant full control (fine for a VM just used for development, but not advised for normal machines)

8. Open ``hosts`` with notepad and add to the bottom of the file:
``10.0.2.2 osf.localhost``
where 10.0.2.2 is your Default Gateway IP from step 3

7. Open IE and navigate to ``http://osf.localhost:5000``
9. Open IE and navigate to ``http://osf.localhost:5000``

0 comments on commit 64be1b6

Please sign in to comment.