1. mike S
  2. PowerServer
  3. Wednesday, 4 January 2023 16:12 PM UTC

The sample powerserver for executing additonal command line has this which appears to be how you build the webserver api:

dotnet.exe run --no -build --project C:\Users\appeon\source\repos\PowerServer_salesdemo\ServerAPIs\ServerAPIs.csproj

 

and this how to publish:

dotnet.exe publish C:\Users\appeon\source\repos\PowerServer_salesdemo\ServerAPIs\ServerAPIs.csproj -c release -o C:\Publish

How does the publish work when you have 4 options? (folder, web server, docker, kubernetes)?

 

I am guessing there are donnet.exe options for getting source code from git to do the build?

 

It would be great to have some help/links that explain the options in snapdevelop building and publishing via command line

 

 

Logan Liu @Appeon Accepted Answer Pending Moderation
  1. Friday, 6 January 2023 03:48 AM UTC
  2. PowerServer
  3. # 1

Hi Mike,

1) "How does the publish work when you have 4 options? (folder, web server, docker, kubernetes)?"

dotnet publish - Publishes the application and its dependencies to a folder, refer to .NET CLI doc: https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-publish

It can't help you to deploy files to the web server, docker, kubernetes by default, that's the IDE's job.

Alternatively, you can find some CLI tools to do all such things outside the SnapDevelop IDE.

E.g.:

You can use docker CLI: https://docs.docker.com/engine/reference/commandline/cli/

Kubernetes provides a command line tool: https://kubernetes.io/docs/reference/kubectl/

You can call OS CLI to copy the file to your IIS site's Physical path.  

 

2) "I am guessing there are donnet.exe options for getting source code from git to do the build?"

Please try GitHub CLI: https://cli.github.com/

 

3) "It would be great to have some help/links that explain the options in snapdevelop building and publishing via command line"

SnapDevelop hasn't provided any special CLI tools. Please try the other CLI tools suggested above.

 

BTW:

You can see "PowerServer projects optimize the compilation and deployment process" in the roadmap: https://www.appeon.com/developers/roadmap

AFAIK, we are trying to implement the PowerServer Web API publishing feature in the PB IDE to make the deployment process easier. It may support some commonly publish methods such as Folder/FTP/WebDeploy at the first step. So you can also expect PBAutoBuild CLI to support these PowerServer Web API publish methods in the future. 

Regards, Logan

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.