Skip to content

Commit e41075b

Browse files
rake task on kamal
1 parent 1a3d6b5 commit e41075b

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
layout: single
3+
title: How to run a rake task on Kamal?
4+
description: &description >
5+
This article explains how to run a rake task on Kamal.
6+
excerpt: *description
7+
date: 2024-10-30
8+
categories:
9+
- Kamal
10+
tags:
11+
- Rails
12+
- Rake Task
13+
header:
14+
og_image: /assets/images/opengraph/2024-10-30-how-to-run-a-rake-task-on-kamal.png
15+
---
16+
17+
To run a rake task on Kamal, you can use the following command:
18+
19+
**Syntax:**
20+
21+
```bash
22+
kamal app exec -i 'bundle exec rake <task_name>'
23+
```
24+
25+
**Example:**
26+
27+
```bash
28+
kamal app exec -i 'bundle exec rake users:import'
29+
```
Loading

0 commit comments

Comments
 (0)