You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fastest way to deploy is using the Railway template:
23
21
24
-
# 🐧 Linux
25
-
curl -L https://fly.io/install.sh | sh
26
-
```
22
+
[](https://railway.com/template/RiUi5U?referralCode=3O4l1-)
27
23
28
-
### 🔑 Authentication
24
+
You can also access the template directly at: <https://railway.com/template/RiUi5U?referralCode=3O4l1->
29
25
30
-
Sign up and authenticate with Fly.io:
26
+
### ⚙️ Configuration
31
27
32
-
```bash
33
-
fly auth signup
34
-
# or
35
-
fly auth login
36
-
```
28
+
After deploying the template, you'll need to configure the following environment variables in the Railway dashboard:
37
29
38
-
###🛫 Deployment Steps
30
+
#### Required Environment Variables
39
31
40
-
1. 🎬 Initialize your Fly.io application:
32
+
-`TWITTER_USERNAME`: Your Twitter username.
33
+
-`TWITTER_PASSWORD`: Your Twitter password.
34
+
-`TWITTER_EMAIL`: Your Twitter email.
35
+
-`TWITTER_2FA`: Your Twitter 2FA code.
41
36
42
-
```bash
43
-
bun run deploy:init
44
-
```
37
+
#### Optional Environment Variables
45
38
46
-
This will:
39
+
-`TELEGRAM_BOT_TOKEN`: Your Telegram bot token (required for the [Telegram plugin](../plugins/distributors/telegram.md)).
40
+
-`OPENROUTER_API_KEY`: Your OpenRouter API key (required for the [AI Transform plugin](../plugins/transformers/ai-transform.md)).
47
41
48
-
- 📦 Create the Fly App
49
-
- 💾 Set up LiteFS volume ([LiteFS Speedrun](https://fly.io/docs/litefs/speedrun/))
50
-
- 🔄 Attach Consul for LiteFS cluster management
42
+
### 🔧 Customization
51
43
52
-
2. ⚙️ Configure environment variables:
44
+
You'll need to customize your `curate.config.json` file to match your specific curation needs. See the [configuration documentation](./configuration.md) for details on how to set up your configuration.
53
45
54
-
```bash
55
-
# 🐦 Twitter Authentication
56
-
fly secrets set TWITTER_USERNAME=your_twitter_username
57
-
fly secrets set TWITTER_PASSWORD=your_twitter_password
58
-
fly secrets set TWITTER_EMAIL=your_twitter_email
59
-
60
-
# 📢 Distribution Services
61
-
fly secrets set TELEGRAM_BOT_TOKEN=your_bot_token
62
-
fly secrets set TELEGRAM_CHANNEL_ID=your_channel_id
You can deploy the application using the [Dockerfile](https://github.com/PotLock/curatedotfun/blob/main/Dockerfile)and connect it to your own Postgres database:
109
72
110
-
1.**🗄️ Container issues**
73
+
1.**Build the Docker image**:
111
74
112
75
```bash
113
-
# Explore container
114
-
fly ssh console
115
-
116
-
# Verify Consul
117
-
fly consul status
118
-
119
-
# Check status
120
-
fly logs
76
+
docker build -t curatedotfun .
121
77
```
122
78
123
-
3.**💻 Scale up or downtown**
79
+
2.**Run the container with environment variables**:
This approach works with any hosting provider that supports Docker containers, such as [DigitalOcean App Platform](https://www.digitalocean.com/products/app-platform), [AWS App Runner](https://aws.amazon.com/apprunner/), [Google Cloud Run](https://cloud.google.com/run), or [Azure Container Instances](https://azure.microsoft.com/en-us/products/container-instances).
0 commit comments