commit | 9bde5c514248e89b56fafbdf8b6a46c5ce5d69a8 | [log] [tgz] |
---|---|---|
author | Kelley Spoon <kelley.spoon@linaro.org> | Tue May 04 08:12:43 2021 -0500 |
committer | Kelley Spoon <kelley.spoon@linaro.org> | Tue May 04 08:22:29 2021 -0500 |
tree | 1f20f71ecdd670abfae147a20377b67bb8a69e99 | |
parent | c18d4cc421da2d2dc5c0ecaeb7e86089ad573592 [diff] |
update to fix deployment This update reflects the latest version of tuxput (uploaded to ensure that Lambda wasn't holding onto an obsolete version) as well as a zappa_settings.yml that removes the unecessary "/" for S3_ROOT Change-Id: Ia61c15c03f41f9b5e2c73298dbe77777d5f7c909
This repository uses Zappa, TuxPut, and pipenv to deploy an upload server to S3!
This will create Pipfile and Pipfile.lock.
$ pipenv install zappa $ pipenv install -e git+ssh://git@gitlab.com/kspoon-linaro/tuxput.git@master#egg=tuxput
This will update Pipfile.lock based on the most current version of the things listed in Pipfile.
$ pipenv update
Once it's already been deployed, changes (such as tuxput updates) are deployed using 'zappa update'.
$ pipenv run zappa update dev $ # test/validate dev $ pipenv run zappa update prod
$ S3_BUCKET=testing-tuxpub.ctt.linaro.org S3_REGION=us-east-1 S3_ROOT=projects FLASK_APP=tuxput pipenv run flask run
For the time being, there is only one environment: production. The deploy and update verbs require an environment argument.
$ pipenv run zappa deploy prod
To associate a zappa deploy with a domain name, as defined in zappa_settings.yml, run zappa certify. We use ACM certificates to terminate https, which were manually created and are automatically renewed.
$ pipenv run zappa certify prod
You will also need to setup the AWS API Gateway and Route 53 entry for your site. The API Gateway should be tied to the project_name value in zappa_settings.yml.