Skip to content
Example application to deploy with Paco managed-webapp-cicd starting template
Python CSS Shell Mako
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
deploy
saas
.coveragerc
.gitignore
CHANGES.txt
MANIFEST.in
README.txt
appspec.yml
aws.ini
buildspec.yml
development.ini
production.ini
pyramid.wsgi
pytest.ini
setup.py

README.txt

Pyramid SaaS
============

Getting Started
---------------

- Change directory into your newly created project.

    cd saas

- Create a Python virtual environment.

    python3 -m venv env

- Upgrade packaging tools.

    env/bin/pip install --upgrade pip setuptools

- Install the project in editable mode with its testing requirements.

    env/bin/pip install -e ".[testing]"

- Initialize and upgrade the database using Alembic.

    - Create database:

       mysql> create database saas;

    - Generate your first revision, upgrade to it, load start data:

        env/bin/alembic -c development.ini revision --autogenerate -m "init"
        env/bin/alembic -c development.ini upgrade head
        env/bin/initialize_saas_db development.ini

- Run your project's tests.

    env/bin/pytest

- Run your project.

    env/bin/pserve development.ini

Deploying
---------

The buildspec.yml controls the deployment pipeline which builds new artifacts to deploy.

The appspec.yml controls the scripts which run on the instances to update new artifacts.

The 'dev' branch updates the development environment, 'staging' udpates the staging environemnt
and the 'prod' branch updates the production environment.

ToDo
----

 - Launching new ASG needs a commit to trigger an initial deploy.

 - added staging branch
You can’t perform that action at this time.