Create python env conditionally
This commit is contained in:
@@ -10,6 +10,9 @@ then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fission env create --name python --image fission/python-env
|
# Create python env if it doesn't exist
|
||||||
|
fission env get --name python || fission env create --name python --image fission/python-env
|
||||||
|
|
||||||
|
# Register functions and routes with fission
|
||||||
fission function create --name guestbook-get --env python --code get.py --url /guestbook --method GET
|
fission function create --name guestbook-get --env python --code get.py --url /guestbook --method GET
|
||||||
fission function create --name guestbook-add --env python --code add.py --url /guestbook --method POST
|
fission function create --name guestbook-add --env python --code add.py --url /guestbook --method POST
|
||||||
|
|||||||
Reference in New Issue
Block a user