Skip to content

Commit 66face8

Browse files
committed
Speed up ckedit compiling time by mina
Step 1: Add tmp to shared_paths set :shared_paths, ['config/database.yml', 'log', 'tmp'] Step 2: Create tmp directory in the setup task. task :setup => :environment do ... queue! %[mkdir -p "#{deploy_to}/shared/tmp"] queue! %[chmod g+rx,u+rwx "#{deploy_to}/shared/tmp"] ... end
1 parent f78bfbf commit 66face8

File tree

1 file changed

+18
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)