Commit 5345afbd015fed9ecc4c8bae7f2317df54e0338a
1 parent
364a70cf
Exists in
master
and in
1 other branch
more finagling of logs
Showing
1 changed file
with
8 additions
and
5 deletions
Show diff stats
script/create_project
... | ... | @@ -13,8 +13,8 @@ base_directory = Pathname.new(File.join(File.dirname(__FILE__), '..', '..')).rea |
13 | 13 | project_directory = base_directory + project_name |
14 | 14 | fail("Project directory (#{project_directory}) already exists") if project_directory.exist? |
15 | 15 | |
16 | -template_url = "git://github.com/dancroak/heroku_suspenders.git" | |
17 | -changeme = "CHANGEME" | |
16 | +template_url = "git://github.com/dancroak/heroku_suspenders.git" | |
17 | +changeme = "CHANGEME" | |
18 | 18 | changesession = "CHANGESESSION" |
19 | 19 | |
20 | 20 | def run(cmd) |
... | ... | @@ -58,9 +58,12 @@ run("sudo rake gems:install RAILS_ENV=development") |
58 | 58 | run("sudo rake gems:install RAILS_ENV=test") |
59 | 59 | run("sudo rake gems:install RAILS_ENV=cucumber") |
60 | 60 | |
61 | -run("touch log/development.log") | |
62 | -run("touch log/test.log") | |
63 | -run("touch log/cucumber.log") | |
61 | +run("sudo touch log/development.log") | |
62 | +run("sudo chmod 0666 log/development.log") | |
63 | +run("sudo log/test.log") | |
64 | +run("sudo chmod 0666 log/test.log") | |
65 | +run("sudo log/cucumber.log") | |
66 | +run("sudo chmod 0666 log/cucumber.log") | |
64 | 67 | |
65 | 68 | run("rake db:migrate RAILS_ENV=development") |
66 | 69 | run("rake db:migrate RAILS_ENV=test") | ... | ... |