diff --git a/README.md b/README.md index 8793d8b..b18cd85 100644 --- a/README.md +++ b/README.md @@ -29,26 +29,13 @@ ## Post-install ``` -./first_deploy.sh +passwd=`abra app run pen.lumbung.space db cat /run/secrets/db_password` +abra app run pen.lumbung.space db mysql -u writeas -p$passwd writefreely +ALTER TABLE `oauth_users` MODIFY `access_token` varchar(2048); ``` ## Keycloak setup -Until [this](https://github.com/writefreely/writefreely/issues/516) is fixed, you have to migrate the db yourself. - -Get into a db shell with the following: - -``` -db_passwd=$(abra app run db cat /run/secrets/db_password) -abra app run db mysql -u writeas -p"$db_passwd" writefreely -``` - -Run the migration: - -``` -ALTER TABLE 'oauth_users' MODIFY 'access_token' varchar(2048); -``` - For the **OAUTH_HOST** config, it uses this format: `https://keycloak.domain.here/auth/realms//protocol/openid-connect`. ## Acknowledgements