Changeset 2280 for branches/locker-dev/locker/deploy/bin
- Timestamp:
- Aug 1, 2012, 12:43:11 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/locker-dev/locker/deploy/bin/rails
r2279 r2280 127 127 untie @railswelcome; 128 128 129 # set config.action_controller.asset_host for all environments, 130 # so urls to static assets are generated correctly 131 # regardless of how the app is accessed 132 my $rails_assethost = " config.action_controller.asset_host = \"//$USER.scripts.mit.edu/$appdir/public\""; 133 my @environments = ('development', 'production', 'test'); 134 135 for my $environment (@environments) { 136 tie my @envfile, 'Tie::File', "config/environments/$environment.rb"; 137 my $i = 0; 138 for (@envfile) { 139 if (/^end$/) { 140 last; 141 } 142 ++$i; 143 } 144 splice @envfile, $i, 1, ($rails_assethost, 'end'); 145 untie @envfile; 146 } 147 148 129 149 tie my @railsfcgi, 'Tie::File', 'public/dispatch.fcgi'; 130 150 for (@railsfcgi) {
Note: See TracChangeset
for help on using the changeset viewer.