Skip to content

Commit 3390aef

Browse files
committed
created a rake task to run foreman on dev and production
1 parent 13ac6bf commit 3390aef

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

lib/tasks/start.rake

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
namespace :start do
2+
desc "Start Development server"
3+
task :development do
4+
exec "foreman start -f Procfile.dev"
5+
end
6+
7+
desc "start Production Server"
8+
task :production do
9+
exec "YARN_PRODUCTION=true yarn run postinstall && foreman start"
10+
end
11+
end
12+
13+
task :start => "start:development"

0 commit comments

Comments
 (0)