Fix Takahē spelling.
rodzic
637514451c
commit
2948f942f3
|
@ -1,7 +1,7 @@
|
|||
# takahe on Fly.io
|
||||
# takahē on Fly.io
|
||||
|
||||
Here's a short tutorial to get [Takahe](https://jointakahe.org) running on [Fly.io](https://fly.io).
|
||||
It's intentionally a very basic setup both in terms of the Fly.io configuration as well as the Takahe installation, but should get things going.
|
||||
Here's a short tutorial to get [Takahē](https://jointakahe.org) running on [Fly.io](https://fly.io).
|
||||
It's intentionally a very basic setup both in terms of the Fly.io configuration as well as the Takahē installation, but should get things going.
|
||||
|
||||
As far as I understand Fly.io pricing, the minimal version of this should even run within the free tier.
|
||||
|
||||
|
@ -25,13 +25,13 @@ Next, we create the (empty) Fly.io app.
|
|||
|
||||
## Attach database to application
|
||||
|
||||
Now, we can attach the Postgres instance to the app and set the correct environment variable for the connection URL for Takahe. This also creates the database and the database user.
|
||||
Now, we can attach the Postgres instance to the app and set the correct environment variable for the connection URL for Takahē. This also creates the database and the database user.
|
||||
|
||||
flyctl postgres attach $APP_NAME-postgres -a $APP_NAME --database-name takahe --database-user takahe --variable-name TAKAHE_DATABASE_SERVER
|
||||
|
||||
## Setup secrets
|
||||
|
||||
Next, we need to generate a `SECRET_KEY` for Takahe and want to set up a few encrypted environment variables for our Takahe installation. (See [Media Configuration](https://docs.jointakahe.org/en/latest/installation/#media-configuration) and [Email Configuration](https://docs.jointakahe.org/en/latest/installation/#email-configuration).)
|
||||
Next, we need to generate a `SECRET_KEY` for Takahē and want to set up a few encrypted environment variables for our Takahē installation. (See [Media Configuration](https://docs.jointakahe.org/en/latest/installation/#media-configuration) and [Email Configuration](https://docs.jointakahe.org/en/latest/installation/#email-configuration).)
|
||||
|
||||
flyctl secrets set -a $APP_NAME TAKAHE_SECRET_KEY=<SECRET KEY>
|
||||
flyctl secrets set -a $APP_NAME TAKAHE_MEDIA_BACKEND=s3://access-key:secret-key@endpoint-url/bucket-name
|
||||
|
@ -39,7 +39,7 @@ Next, we need to generate a `SECRET_KEY` for Takahe and want to set up a few enc
|
|||
|
||||
## Setup fly.toml
|
||||
|
||||
The main configuration for our Fly.io app lives in [`fly.toml`](fly.toml). Feel free to adjust the example base config file in this repository, especially considering the [Environment Variables](https://docs.jointakahe.org/en/latest/installation/#environment-variables) for configuring Takahe further.
|
||||
The main configuration for our Fly.io app lives in [`fly.toml`](fly.toml). Feel free to adjust the example base config file in this repository, especially considering the [Environment Variables](https://docs.jointakahe.org/en/latest/installation/#environment-variables) for configuring Takahē further.
|
||||
|
||||
## Deploy
|
||||
|
||||
|
@ -47,15 +47,15 @@ Now, from the directory of the `fly.toml` file, we can deploy our app.
|
|||
|
||||
flyctl deploy
|
||||
|
||||
Takahe should now be running at \<YOUR APP DOMAIN>.
|
||||
Takahē should now be running at \<YOUR APP DOMAIN>.
|
||||
|
||||
## Create admin user
|
||||
|
||||
To log into Takahe, first create a admin user by logging into the Fly.io instance:
|
||||
To log into Takahē, first create a admin user by logging into the Fly.io instance:
|
||||
|
||||
flyctl ssh console
|
||||
/takahe/manage.py createsuperuser
|
||||
|
||||
## Login, Takahe setup
|
||||
## Login, Takahē setup
|
||||
|
||||
Now, go to \<YOUR APP DOMAIN> to login and complete the setup of the Takahe instance.
|
||||
Now, go to \<YOUR APP DOMAIN> to login and complete the setup of the Takahē instance.
|
||||
|
|
Ładowanie…
Reference in New Issue