Created
October 24, 2019 12:59
-
-
Save 1oglop1/bbbaa7743edd4e2e9c2ed1702b5b1a58 to your computer and use it in GitHub Desktop.
how about Now.sh?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 2, | |
"name": "my-python-project", | |
"builds": [ | |
{ "src": "www/**/*", "use": "@now/static" }, | |
{ "src": "api/**/*.py", "use": "@now/python" } | |
], | |
"routes": [ | |
{ | |
"src": "/", | |
"dest": "www/index.html" | |
}, | |
{ | |
"src": "^/api/(function|function\\.py)$", | |
"dest": "api/function.py" | |
}, | |
{ | |
"status": 404, | |
"src": "/api(\\/.*)?$" | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public | |
├── api | |
│ ├── function.py | |
│ └── requirements.txt | |
├── now.json | |
└── www | |
└── index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment