File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -217,9 +217,11 @@ public class JobApplicationAttachment
217217
218218 public override void Up ( )
219219 {
220- var profilesDir = Path . GetFullPath ( Path . Join ( AppContext . BaseDirectory , "../../../wwwroot" , "profiles" ) ) ;
221- var sourceDir = Path . GetFullPath ( Path . Join ( AppContext . BaseDirectory , "../../../Migrations/seed" ) ) ;
222- var targetDir = Path . GetFullPath ( Path . Join ( AppContext . BaseDirectory , "../../../App_Data" ) ) ;
220+
221+ var profilesDir = HostContext . AppHost . IsDevelopmentEnvironment ( ) ? "./wwwroot/profiles" :
222+ Path . GetFullPath ( Path . Join ( AppContext . BaseDirectory , "./wwwroot" , "profiles" ) ) ;
223+ var sourceDir = Path . GetFullPath ( Path . Join ( AppContext . BaseDirectory , "./Migrations/seed" ) ) ;
224+ var targetDir = Path . GetFullPath ( Path . Join ( AppContext . BaseDirectory , "./App_Data" ) ) ;
223225
224226 Db . CreateTable < Contact > ( ) ;
225227 Db . CreateTable < Job > ( ) ;
You can’t perform that action at this time.
0 commit comments