We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 419071f commit 1ed4dc5Copy full SHA for 1ed4dc5
lib/install/Procfile.dev
@@ -0,0 +1,2 @@
1
+web: bin/rails server
2
+css: yarn build:css --watch
lib/install/dev
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+
3
+foreman start -f Procfile.dev
lib/install/install.rb
@@ -14,3 +14,16 @@
14
say "Add default package.json"
15
copy_file "#{__dir__}/package.json", "package.json"
16
end
17
18
+if Rails.root.join("Procfile.dev").exist?
19
+ append_to_file "Procfile.dev", "css: yarn build:css --watch"
20
+else
21
+ say "Add default Procfile.dev"
22
+ copy_file "#{__dir__}/Procfile.dev", "Procfile.dev"
23
24
+ say "Ensure foreman is install"
25
+ run "gem install foreman"
26
+end
27
28
+say "Add bin/dev to start foreman"
29
+copy_file "#{__dir__}/dev", "bin/dev"
0 commit comments