commit | c50a72ef8bfdb9c065e4681450b53162eddaa6d6 | [log] [tgz] |
---|---|---|
author | Benjamin Copeland <ben.copeland@linaro.org> | Mon Jun 28 15:47:44 2021 +0100 |
committer | Benjamin Copeland <ben.copeland@linaro.org> | Mon Jun 28 15:47:44 2021 +0100 |
tree | 462c55636a77c4fc1fd167f218099b37cabe5f5c | |
parent | 70bd3b72e084e7fc98ab87b9e9414cc54cd04faa [diff] |
Tuxput: Update Pipfile and zappa_settings Signed-off-by: Benjamin Copeland <ben.copeland@linaro.org> Change-Id: Iadea7515aede2b6a8322e15ae0522128498fb996
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/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
$ CONF_BUCKET=testing-tuxpub-auth S3_REGION=us-east-1 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.