Skip to content

Commit

Permalink
change host name used for project migration
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed Nov 20, 2023
1 parent c761541 commit 927e637
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/LexBoxApi/Services/HgService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public async Task<bool> MigrateRepo(Project project, CancellationToken cancellat
//rsync data from remote server to /hg-repos
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) return false;
var repoPath = Path.GetFullPath(_options.Value.RepoPath);
var remoteHost = "public.languagedepot.org";
var remoteHost = _options.Value.MigrationHost;
var remotePathPart = project.ProjectOrigin == ProjectMigrationStatus.PublicRedmine ? "public" : "private";
var remotePath = $"/var/vcs/{remotePathPart}/{project.Code}";
var process = Process.Start(new ProcessStartInfo
Expand Down
1 change: 1 addition & 0 deletions backend/LexCore/Config/HgConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ public class HgConfig

[Required(AllowEmptyStrings = false)]
public required string RedmineTrustToken { get; init; }
public string MigrationHost { get; init; } = "sysops.languagedepot.org";
}

0 comments on commit 927e637

Please sign in to comment.