YAFLogo

tirion
  • tirion
  • 50.2% (Neutral)
  • YAF Forumling Topic Starter
10 years ago
https://github.com/YAFNET/YAFNET :

1. Where is web.config in YetAnotherForum.NET directory? Is it missing on purpose or it's not included for some reason?
2. I saw that in db.config you are attaching |DataDirectory|Database.mdf; - does the forum seriously uses attached db? Autogenerates schema in it on first execution? How is it initial structure / data populated?
3. Presuming I have db running - how to start the website locally? Starting YAF project does nothing because of missing web.config

Thanks for the answers and I hope I'll be able to contribute to the project
Sponsor

tirion
  • tirion
  • 50.2% (Neutral)
  • YAF Forumling Topic Starter
10 years ago
OK, for anyone who stumbles upon this post:
1. There is webconfigs directory - need to copy web.config from there.

I'm now on #2 - need to update my sql server express since the database is created using Microsoft® SQL Server® 2008 R2 SP2 (and I have "only" SQL Server 2008).
bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
10 years ago
Originally Posted by: tirion 


I'm now on #2 - need to update my sql server express since the database is created using Microsoft® SQL Server® 2008 R2 SP2 (and I have "only" SQL Server 2008).


This is an empty database. Simply remove it and create your own. You can use any database - just change your connection string.
tirion
  • tirion
  • 50.2% (Neutral)
  • YAF Forumling Topic Starter
10 years ago
Yeah - just now saw that after I finished installation process.

I'll now browse setting and code and get back here later.

One question though - why are .config files tracked / in repo? Meaning - now that I've changed .config files for my local dev env I obviously can't send that commit to master. How do you guys deal with those files? You have local .gitignore?

Also my Visual Studio heavily modified .csproj files - do you use some other IDE? Or Visual Studio 2012?
Zero2Cool
10 years ago
I'm using Visual Studio 2012 Express for Web to compile YAF. Granted, I don't make any changes. I just compile the source in RELEASE and use the DLL's.
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button