Koser family site, written in ASP.NET Core MVC
- Clone repo
- Build
- If task runner task fails, create
GitHub\kodex\src\web\wwwroot\css
folder - Set connection strings
- Right-click Web project and click "Manage user secrets"
- Set file to below
- Replace {value}s with actual values
- Place Concourse fonts in
\Github\kodex\src\web\wwwroot\fonts\concourse
{
"ConnectionStrings": {
"KodexDBConnectionString": "Server={server};Database={database};User ID={userid};Password={password};MultipleActiveResultSets=true"
}
}
- In VS, Build > Publish
- New Profile...
- IIS, FTP, etc
- Create profile
- Enter Connection info
- Publish method: Web Deploy
- Server:
- Site name: koser.us
- User name:
- Password:
- Destination URL: http://koser.us
- Enter Settings info
- Configuration: Release
- Target framework: netcoreapp2.1
- Deployment Mode: Framework-Dependent
- Target Runtime: Portable
- File Publish Options: Do not remove additional files at destination
- Databases > KodexDBConnectionString
- Use this connection string at runtime
- KodexDBConnectionString from User Secrets in above section