File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 2
2
require "fileutils"
3
3
4
4
APP_ROOT = File . expand_path ( ".." , __dir__ )
5
- APP_NAME = "coderdojo-jp"
5
+ APP_NAME = "coderdojo-jp" # For Heroku Deployment
6
6
7
7
def system! ( *args )
8
8
system ( *args , exception : true )
@@ -14,7 +14,6 @@ FileUtils.chdir APP_ROOT do
14
14
# Add necessary setup steps to this file.
15
15
16
16
puts "== Installing dependencies =="
17
- system! "gem install bundler --conservative"
18
17
system ( "bundle check" ) || system! ( "bundle install" )
19
18
20
19
# puts "\n== Copying sample files =="
@@ -56,10 +55,9 @@ FileUtils.chdir APP_ROOT do
56
55
puts "\n == Removing old logs and tempfiles =="
57
56
system! "bin/rails log:clear tmp:clear"
58
57
59
- puts "\n == Restarting application server =="
60
- system! "bin/rails restart"
61
-
62
- # puts "\n== Configuring puma-dev =="
63
- # system "ln -nfs #{APP_ROOT} ~/.puma-dev/#{APP_NAME}"
64
- # system "curl -Is https://#{APP_NAME}.test/up | head -n 1"
58
+ unless ARGV . include? ( "--skip-server" )
59
+ puts "\n == Starting development server =="
60
+ STDOUT . flush # flush the output before exec(2) so that it displays
61
+ exec "bin/dev"
62
+ end
65
63
end
You can’t perform that action at this time.
0 commit comments