Create python env conditionally

This commit is contained in:
Soam Vasani
2017-01-18 15:43:29 -08:00
parent 928d96c080
commit e268ae68e7
+4 -1
View File
@@ -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