File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change
1
+ web: bin/rails server
2
+ js: yarn build --watch
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ foreman start -f Procfile.dev
Original file line number Diff line number Diff line change 26
26
say "Add default package.json"
27
27
copy_file "#{ __dir__ } /package.json" , "package.json"
28
28
end
29
+
30
+ if Rails . root . join ( "Procfile.dev" ) . exist?
31
+ append_to_file "Procfile.dev" , "js: yarn build --watch"
32
+ else
33
+ say "Add default Procfile.dev"
34
+ copy_file "#{ __dir__ } /Procfile.dev" , "Procfile.dev"
35
+
36
+ say "Ensure foreman is installed"
37
+ run "gem install foreman"
38
+ end
39
+
40
+ say "Add bin/dev to start foreman"
41
+ copy_file "#{ __dir__ } /dev" , "bin/dev"
42
+ chmod "bin/dev" , 0755 , verbose : false
You can’t perform that action at this time.
0 commit comments