-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
57 changed files
with
2,672 additions
and
11,636 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*/node_modules | ||
*/npm-debug.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,7 +49,7 @@ jobs: | |
LETSENCRYPT_EMAIL: ${{ env.letsencrypt_email }} | ||
with: | ||
input: deploy/docker-compose-template.yml | ||
output: deploy/SvelteSpaTemplate-docker-compose.yml | ||
output: deploy/SvelteSpa-docker-compose.yml | ||
|
||
- name: copy compose file via scp | ||
uses: appleboy/[email protected] | ||
|
@@ -58,7 +58,7 @@ jobs: | |
username: ${{ secrets.DEPLOY_USERNAME }} | ||
port: ${{ secrets.DEPLOY_PORT }} | ||
key: ${{ secrets.DEPLOY_KEY }} | ||
source: "deploy/SvelteSpaTemplate-docker-compose.yml" | ||
source: "deploy/SvelteSpa-docker-compose.yml" | ||
target: "~/" | ||
|
||
- name: Set the value | ||
|
@@ -79,4 +79,4 @@ jobs: | |
envs: APPTOKEN,USERNAME | ||
script: | | ||
echo $APPTOKEN | docker login ghcr.io -u $USERNAME --password-stdin | ||
docker-compose -f ~/deploy/SvelteSpaTemplate-docker-compose.yml up -d | ||
docker-compose -f ~/deploy/SvelteSpa-docker-compose.yml up -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,19 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build | ||
WORKDIR /source | ||
WORKDIR /app | ||
|
||
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - \ | ||
&& apt-get install -y --no-install-recommends nodejs \ | ||
&& echo "node version: $(node --version)" \ | ||
&& echo "npm version: $(npm --version)" \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY SvelteSpaTemplate/package.json . | ||
COPY SvelteSpaTemplate/npm-shrinkwrap.json . | ||
|
||
RUN npm --prefix SvelteSpaTemplate install | ||
|
||
COPY . . | ||
RUN dotnet restore | ||
|
||
WORKDIR /source/SvelteSpaTemplate | ||
RUN dotnet publish -c release -o /app --no-restore | ||
WORKDIR /app/SvelteSpa | ||
RUN dotnet publish -c release -o /out --no-restore | ||
|
||
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS runtime | ||
WORKDIR /app | ||
COPY --from=build /app ./ | ||
ENTRYPOINT ["dotnet", "SvelteSpaTemplate.dll"] | ||
COPY --from=build /out ./ | ||
ENTRYPOINT ["dotnet", "SvelteSpa.dll"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...paTemplate.ServiceInterface/MyServices.cs → SvelteSpa.ServiceInterface/MyServices.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
SvelteSpaTemplate.ServiceModel/Hello.cs → SvelteSpa.ServiceModel/Hello.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
SvelteSpaTemplate.Tests/IntegrationTest.cs → SvelteSpa.Tests/IntegrationTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
SvelteSpaTemplate.Tests/UnitTest.cs → SvelteSpa.Tests/UnitTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Web; | ||
using ServiceStack; | ||
|
||
namespace SvelteSpa | ||
{ | ||
public class ConfigureUi : IConfigureAppHost | ||
{ | ||
public void Configure(IAppHost appHost) | ||
{ | ||
// if wwwroot/ is empty, build Client App with 'npm run build' | ||
var svgDir = appHost.RootDirectory.GetDirectory("/assets/svg"); | ||
if (svgDir != null) | ||
{ | ||
Svg.Load(svgDir); | ||
} | ||
Svg.CssFillColor["svg-icons"] = "#FF3E00"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.