Skip to content

Commit 1407827

Browse files
committed
Enable dev script to use polling
* Added optional parameter "p" to enable polling * Default behavior will remain unchanged
1 parent ef2ca55 commit 1407827

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

Diff for: lib/install/Procfile.dev

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
web: bin/rails server -p 3000
22
css: bin/rails tailwindcss:watch
3+
css_polling: bin/rails tailwindcss:poll

Diff for: lib/install/dev

+15-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,18 @@ then
66
gem install foreman
77
fi
88

9-
foreman start -f Procfile.dev
9+
while getopts p: option
10+
do
11+
case "${option}"
12+
in
13+
p)polling=1;;
14+
*);;
15+
esac
16+
done
17+
18+
if [ $polling -eq 1 ]
19+
then
20+
foreman start -f Procfile.dev -m all=1,css=0
21+
else
22+
foreman start -f Procfile.dev -m all=1,css_polling=0
23+
fi

0 commit comments

Comments
 (0)