pythonasyncioapiasyncfastapiframeworkjsonjson-schemaopenapiopenapi3pydanticpython-typespython3redocreststarletteswaggerswagger-uiuvicornweb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
820 B
22 lines
820 B
#! /usr/bin/env bash
|
|
|
|
# Run this script from outside the project, to integrate a dev-fsfp project with changes and review modifications
|
|
|
|
# Exit in case of error
|
|
set -e
|
|
|
|
if [ ! -d ./full-stack-fastapi-postgresql ] ; then
|
|
echo "Run this script from outside the project, to integrate a sibling dev-fsfp project with changes and review modifications"
|
|
exit 1
|
|
fi
|
|
|
|
if [ $(uname -s) = "Linux" ]; then
|
|
echo "Remove __pycache__ files"
|
|
sudo find ./dev-fsfp/ -type d -name __pycache__ -exec rm -r {} \+
|
|
fi
|
|
|
|
rm -rf ./full-stack-fastapi-postgresql/\{\{cookiecutter.project_slug\}\}/*
|
|
|
|
rsync -a --exclude=node_modules ./dev-fsfp/* ./full-stack-fastapi-postgresql/\{\{cookiecutter.project_slug\}\}/
|
|
|
|
rsync -a ./dev-fsfp/{.env,.gitignore,.gitlab-ci.yml} ./full-stack-fastapi-postgresql/\{\{cookiecutter.project_slug\}\}/
|
|
|