|
|
5 godzin temu | |
|---|---|---|
| app | 5 miesięcy temu | |
| core | 5 miesięcy temu | |
| db | 5 miesięcy temu | |
| docs | 5 godzin temu | |
| public | 5 miesięcy temu | |
| scripts | 5 godzin temu | |
| tests | 6 miesięcy temu | |
| .gitignore | 6 miesięcy temu | |
| README.md | 5 godzin temu | |
| TESTING.md | 5 godzin temu | |
| applicationhost.config | 5 miesięcy temu | |
| run_site.cmd | 5 miesięcy temu | |
A clean starting point for building Classic ASP applications with the RouteKit MVC framework.
public/ folderpublic/web.config:
ConnectionString to your database pathErrorLogPath if you want file logginghttp://localhost/ — you should see the welcome pageMVC-Starter/
public/ # IIS ROOT - point your IIS site here
Default.asp # Front controller (entry point)
web.config # IIS config, routes, connection strings
core/ # Framework core (do not modify)
autoload_core.asp # Loads all core libraries
router.wsc # Route matching engine
mvc.asp # MVC dispatcher
lib.*.asp # Core libraries
app/
controllers/ # Your controllers go here
views/ # Your views go here
shared/ # Shared layout (header, footer)
models/ # POBOs go here
repositories/ # Repository classes go here
db/
migrations/ # Database migrations
webdata.accdb # Access database
scripts/ # Code generators
generateController.vbs
generateMigration.vbs
GenerateRepo.vbs
runMigrations.vbs
cscript //nologo scripts\generateMigration.vbs create_my_table
cscript //nologo scripts\GenerateRepo.vbs /table:my_table /pk:id
Move generated files to app/models/ and app/repositories/.
cscript //nologo scripts\generateController.vbs MyController "Index;Show(id);Create;Store"
Move generated file to app/controllers/.
core/lib.ControllerRegistry.aspapp/controllers/autoload_controllers.asppublic/Default.aspapp/views/MyController///404Production deployment owns an isolated IIS site and app pool; it never targets, adopts, or copies configuration from another site. Defaults are SiteName=AspClassicUnifiedFramework, AppPoolName=AspClassicUnifiedFramework, DeployRoot=D:\Deployments\AspClassicUnifiedFramework, and HTTP binding 100.97.39.23:8085 with an empty host header. Every value is explicitly overridable, while mismatched existing target state fails closed.
The complete repository is retained in immutable release directories and IIS serves only each release's public/ directory. First deployment initializes shared configuration from packaged public/web.config unless -InitialWebConfigPath is supplied. The target site/app pool is created only after the staged release validates; Classic ASP parent paths are enabled only at that site's location. Failure cleanup is limited to target resources created by the current invocation, or restoration of the prior valid target state. Migrations remain disabled by default.
Run scripts/deploy-iis-git.ps1 -LocalPreflightOnly for local source/XML/package/safety validation with no network access. When host access is permitted, run -PreflightOnly for the complete check: it streams the installer without writing remote files and validates IIS features/modules, binding and shared-pool conflicts, drive/path, names, and target state without requiring the target to exist or making IIS/deployment changes. -HostPreflightOnly and -RemotePreflightOnly remain aliases. Gitea 1.11.4 has no Gitea Actions, so use a trusted external worker or operator workstation. See docs/deployment-guide.md and docs/deployment-configuration.md.
This repo now includes a dev-only aspunit harness under tests/. It is intentionally separate from the production app rooted at public/.
tests/tests/web.config, refresh the nested test-folder copies with cscript //nologo tests\sync-webconfigs.vbsrun-all.asp inside that IIS app to execute the test suiteTESTING.md for setup, manifest registration, and extension guidancePowered by TurnKey Linux.