chore: use command for dev server
This commit is contained in:
parent
ced9f535c7
commit
3927c7e08f
2 changed files with 5 additions and 1 deletions
|
@ -40,7 +40,7 @@ Yet another rewrite of my [personal site](https://ayo.ayco.io)
|
|||
|
||||
3. To start development, run the following:
|
||||
```bash
|
||||
(.venv)$ python api.py
|
||||
(.venv)$ flask --app web.py --debug run
|
||||
```
|
||||
|
||||
> Note: On a Mac, the default port 5000 is used by AirDrop & Handoff; you may have to turn those off
|
||||
|
|
4
web.py
4
web.py
|
@ -5,5 +5,9 @@ app = Flask(__name__)
|
|||
def home():
|
||||
return render_template('index.html')
|
||||
|
||||
@app.route('/api')
|
||||
def api():
|
||||
return 'API'
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(host='0.0.0.0')
|
||||
|
|
Loading…
Reference in a new issue