Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

デプロイ先のWeb Appを分割する #83

Open
2 of 3 tasks
tsubakimoto opened this issue May 6, 2024 · 1 comment
Open
2 of 3 tasks

デプロイ先のWeb Appを分割する #83

tsubakimoto opened this issue May 6, 2024 · 1 comment
Assignees

Comments

@tsubakimoto
Copy link
Owner

tsubakimoto commented May 6, 2024

TODO

  • Web Appリソースを作成する
  • カスタムドメインを設定する
  • デプロイ先を変更する

Apps

References

@tsubakimoto tsubakimoto self-assigned this May 6, 2024
@tsubakimoto
Copy link
Owner Author

tsubakimoto commented May 6, 2024

APP_NAME_PREFIX=
APP_NAME_SUFFIX=.azurewebsites.net
GROUP_NAME=
HOST_NAME_PREFIX=gha-
HOST_NAME_SUFFIX=
THUMBPRINT=

LANGS=("cakephp" "django" "dotnet6" "dotnet7" "dotnet8" "express" "fastapi" "laravel" "nuxtjs" "php")
for lang in ${LANGS[@]}; do
    az webapp config hostname add \
        --webapp-name $APP_NAME_PREFIX$lang \
        --resource-group $GROUP_NAME \
        --hostname $HOST_NAME_PREFIX$lang$HOST_NAME_SUFFIX
    az webapp config ssl bind \
        --certificate-thumbprint $THUMBPRINT \
        --name $APP_NAME_PREFIX$lang \
        --resource-group $GROUP_NAME \
        --ssl-type SNI
    az webapp config set \
        --name $APP_NAME_PREFIX$lang \
        --resource-group $GROUP_NAME \
        --always-on true
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant