Changeset 7914
- Timestamp:
- 03/13/08 21:21:47 (5 years ago)
- Files:
-
- 1 modified
-
lang/perl/misc/catstarter/dann/catstarter.pl (modified) (20 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/misc/catstarter/dann/catstarter.pl
r6823 r7914 17 17 cache 18 18 session 19 validator 19 20 authentication 20 21 i18n … … 161 162 !system "mkdir -p $dist/root/templates/errors" or die $?; 162 163 !system "mkdir -p $dist/root/templates/email" or die $?; 163 !system "mkdir -p $dist/config" or die $?; 164 !system "mkdir -p $dist/config/templates" or die $?; 165 !system "mkdir -p $dist/config/sql" or die $?; 166 !system "touch $dist/config/sql/schema.sql" or die $?; 164 !system "mkdir -p $dist/conf" or die $?; 165 !system "mkdir -p $dist/share" or die $?; 166 !system "mkdir -p $dist/share/templates" or die $?; 167 !system "mkdir -p $dist/share/sql" or die $?; 168 !system "touch $dist/share/sql/schema.sql" or die $?; 167 169 !system "mkdir -p $dist/lib/$pkg_dir/I18N/" or die $?; 168 170 !system "mkdir -p $dist/logs/apache_app" or die $?; … … 175 177 } 176 178 elsif ( !-d $dist ) { 177 warn qq{No such directory "$dist". Please run "cats etup.pl $dist -new" first.\n};179 warn qq{No such directory "$dist". Please run "catstarter.pl $dist -new" first.\n}; 178 180 exit; 179 181 } … … 196 198 } 197 199 } 200 201 !system "rm ./$dist/$appprefix.yml" or die $?; 198 202 199 203 __DATA__ … … 220 224 I18N 221 225 RequestToken 226 BuildURI 222 227 FormValidator::Simple 223 228 FormValidator::Simple::Auto … … 227 232 our $VERSION = '0.01'; 228 233 234 __PACKAGE__->config( 'Plugin::ConfigLoader' => { file => __PACKAGE__->path_to('conf', '[% apprefix %].yml') } ); 229 235 __PACKAGE__->setup; 230 236 … … 232 238 233 239 --- 234 file: ' $appprefix.yml'240 file: 'conf/$appprefix.yml' 235 241 template: | 236 242 --- … … 242 248 WRAPPER: 'common/site/wrapper.tt2' 243 249 COMPILE_DIR: '__path_to(tmp/template_cache)__' 244 250 245 251 --- 246 252 component: Controller/Root.pm … … 319 325 320 326 1; 327 328 === validator === 329 --- 330 file: 'conf/$appprefix.yml' 331 type: append 332 template: |+2 333 334 validator: 335 profiles: __path_to(conf/profiles.yml)__ 336 337 --- 338 file: 'conf/profiles.yml' 339 type: append 340 template: |+2 341 321 342 322 343 === json === 323 344 --- 324 file: ' $appprefix.yml'345 file: 'conf/$appprefix.yml' 325 346 type: append 326 347 template: |+2 … … 356 377 === db === 357 378 --- 358 file: ' $appprefix.yml'379 file: 'conf/$appprefix.yml' 359 380 type: append 360 381 template: |+2 … … 372 393 373 394 --- 374 file: ' $appprefix\_test.yml'395 file: 'conf/$appprefix\_test.yml' 375 396 template: |+2 376 397 … … 387 408 388 409 --- 389 file: ' $appprefix\_development.yml'410 file: 'conf/$appprefix\_development.yml' 390 411 template: |+2 391 412 … … 403 424 === email === 404 425 --- 405 file: ' $appprefix.yml'426 file: 'conf/$appprefix.yml' 406 427 type: append 407 428 template: |+2 … … 433 454 === cache === 434 455 --- 435 file: ' $appprefix.yml'456 file: 'conf/$appprefix.yml' 436 457 type: append 437 458 template: |+2 … … 445 466 === session === 446 467 --- 447 file: ' $appprefix.yml'468 file: 'conf/$appprefix.yml' 448 469 type: append 449 470 template: |+2 … … 1067 1088 === deploy === 1068 1089 --- 1069 file: ' config/deploy.rb'1090 file: 'share/deploy.rb' 1070 1091 template: | 1071 1092 require 'erb' … … 1229 1250 load 'deploy' if respond_to?(:namespace) # cap2 differentiator 1230 1251 Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) } 1231 load ' config/deploy'1232 1233 --- 1234 file: config/templates/apache_app.erb1252 load 'share/deploy' 1253 1254 --- 1255 file: share/templates/apache_app.erb 1235 1256 template: | 1236 1257 NameVirtualHost *:8080 … … 1256 1277 1257 1278 --- 1258 file: config/templates/apache_web.erb1279 file: share/templates/apache_web.erb 1259 1280 template: | 1260 1281 NameVirtualHost *:80 … … 1324 1345 1325 1346 --- 1326 file: config/templates/mycnf.erb1347 file: share/templates/mycnf.erb 1327 1348 template: | 1328 1349 # … … 1478 1499 1479 1500 --- 1480 file: config/templates/setup_database.sql.erb1501 file: share/templates/setup_database.sql.erb 1481 1502 template: | 1482 1503 DROP DATABASE IF EXISTS <%= dbname %>;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)