Skip to content

Commit

Permalink
Update port for host
Browse files Browse the repository at this point in the history
  • Loading branch information
samueldobbie committed Nov 1, 2020
1 parent 9de4802 commit 79bc56e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ RUN pip install --no-cache-dir -r requirements.txt

COPY . .

EXPOSE 8000
EXPOSE 80

CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ A full-feature version of Markup is available both via website and local install

### Online

The online version of Markup can be found <a href="https://www.getmarkup.com/">here</a> (down temporarily).
The online version of Markup can be found <a href="https://www.getmarkup.com/">here</a>.

### Local Server

#### Docker

Run `docker run -p 8000:8000 samueldobbie/markup` and visit <a href="http://127.0.0.1:8000/">http://127.0.0.1:8000/</a>.
Run `docker run -d -p 80:8000 samueldobbie/markup` and visit <a href="http://127.0.0.1/">http://127.0.0.1/</a>.

#### Manual Installation

1. Clone or download the repository.

2. Run `python setup.py` using 64-bit Python3.

3. Visit <a href="http://127.0.0.1:8000/">http://127.0.0.1:8000/</a>.
3. Visit <a href="http://127.0.0.1/">http://127.0.0.1/</a>.

For futher use, the local server can be started directly by running `python manage.py runserver`.
For futher sessions, the local server can be started directly by running `python manage.py runserver 0.0.0.0:80`.

## Documentation

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ def setup():
print('pip3 has not been installed or you are using 32-bit Python instead of 64-bit.')
return

if os.system('python3 manage.py runserver') == 0:
if os.system('python3 manage.py runserver 0.0.0.0:80') == 0:
os.system('python3 manage.py migrate')
elif os.system('python manage.py runserver') == 0:
elif os.system('python manage.py runserver 0.0.0.0:80') == 0:
os.system('python manage.py migrate')
else:
print('Error: Python3 has not been installed.')
Expand Down

0 comments on commit 79bc56e

Please sign in to comment.