Skip to content

Commit 5db2adc

Browse files
jamesfwzWayneTng
authored andcommitted
TIL Rails: Speed up ckeditor compiling time by mina
1 parent f78bfbf commit 5db2adc

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Speed up ckedit compiling time by mina
2+
3+
### Step 1: Add tmp to shared_paths
4+
```ruby
5+
set :shared_paths, ['config/database.yml', 'log', 'tmp']
6+
```
7+
8+
### Step 2: Create tmp directory in the setup task.
9+
```ruby
10+
task :setup => :environment do
11+
...
12+
queue! %[mkdir -p "#{deploy_to}/shared/tmp"]
13+
queue! %[chmod g+rx,u+rwx "#{deploy_to}/shared/tmp"]
14+
...
15+
end
16+
```

0 commit comments

Comments
 (0)