Compare commits
No commits in common. "626f197a856415577e0369bffa3920aafd6aadaa" and "3062572e52cb79131dca6802eb2d46954f1124dd" have entirely different histories.
626f197a85
...
3062572e52
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
|
@ -9,22 +9,6 @@ pipeline {
|
||||||
APP_VOLUME = '/src'
|
APP_VOLUME = '/src'
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Clear Repository') {
|
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
sh """
|
|
||||||
echo 'Clearing Front directory'
|
|
||||||
docker run --rm -v /volume1/AcaMate/PROJECT/Application/Back:/back alpine \
|
|
||||||
sh -c "find /back -mindepth 1 -maxdepth 1 \\
|
|
||||||
! -name 'private' \\
|
|
||||||
! -name 'publish' \\
|
|
||||||
! -name 'wwwroot' \\
|
|
||||||
-exec rm -rf {} +"
|
|
||||||
echo 'Clean complete'
|
|
||||||
"""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Clone Repository') {
|
stage('Clone Repository') {
|
||||||
steps {
|
steps {
|
||||||
git url: 'https://git.ipstein.myds.me/AcaMate/AcaMate_API.git', branch: env.GIT_BRANCH
|
git url: 'https://git.ipstein.myds.me/AcaMate/AcaMate_API.git', branch: env.GIT_BRANCH
|
||||||
|
|
|
@ -179,8 +179,9 @@ var app = builder.Build();
|
||||||
string staticRoot;
|
string staticRoot;
|
||||||
if (isLocal)
|
if (isLocal)
|
||||||
{
|
{
|
||||||
staticRoot = app.Environment.IsDevelopment() ? //"/publish/debug/wwwroot" : "/publish/release/wwwroot" ;
|
staticRoot = app.Environment.IsDevelopment() ?
|
||||||
Path.Combine(Directory.GetCurrentDirectory(), "publish", "debug", "wwwroot") : Path.Combine(Directory.GetCurrentDirectory(), "publish", "release", "wwwroot") ;
|
Path.Combine(Directory.GetCurrentDirectory(), "publish", "debug", "wwwroot") :
|
||||||
|
Path.Combine(Directory.GetCurrentDirectory(), "publish", "release", "wwwroot") ;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -224,8 +225,8 @@ app.UseWebSockets();
|
||||||
app.UseEndpoints(end =>
|
app.UseEndpoints(end =>
|
||||||
{
|
{
|
||||||
ControllerEndpointRouteBuilderExtensions.MapControllers(end);
|
ControllerEndpointRouteBuilderExtensions.MapControllers(end);
|
||||||
end.MapHub<ChatHub>("/chatHub");
|
|
||||||
end.MapFallbackToFile("index.html");
|
end.MapFallbackToFile("index.html");
|
||||||
|
end.MapHub<ChatHub>("/chatHub");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user