Does this work the way I think it does?
I can set this to linux, develop everything on windows and then just later use it to host the api on linux?
22 Replies
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
:PauseBusiness:
Thanks
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
My project is for the local network I want to run it on my Linux laptop and then I'll ssh to use it
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
it;s a password manager than runs in the terminal
well the API is in .NET Core and the front end is python (CLI)
https://ranger.fm/ I want to make it look similar to this, but I am still working on the API part.
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
I haven't really figured out any of the deploying stuff. But I want to host the API on the same laptop and like only whitelist it's static Ip adress
not sure if that's what you were asking
:thin_cat: I will also have to host the MS SQL db on that laptop
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
the python will send the requests just like any other front end
I will worry about this stuff when both frond end and backend are done
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
I really only need to deploy the API and the DB
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
the python front end can pretty much run as a script
my linux laptop
on my local network
:Ok: I never deployed an API so not sure if you're asking for something more sepcific
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
the code is being written in VS right now
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
in a .NET Core template project
yep
on a windows pc
I was hoping I can put all the stuff in a docker container, put it on a flash drive, copy it over on the linux laptop and have it run
:misty: but it probably isn't that simple
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
I will annoy you later when it's actually time to deploy it :)
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
dotnet publish -c Release -r <runtime identifier> -p:PublishSingleFile=true
Use of -p:PublishSingleFile=true
implies --self-contained true
. Add --self-contained false
to publish as runtime-dependent.
-r RID
and -p:PublishSingleFile=true
can be moved to .csproj as the following properties:but to target multiple RIDs, you have to use dotnet publish
with the -r
option for each RID.
You can also add -p:IncludeNativeLibrariesForSelfExtract=true
to include native libraries (like Common Language Runtime dlls) in the output executable, but be aware of drawbacks and consider using an installer framework instead of that property with PublishSingleFile.
You might want to instead publish your application compiled Ahead Of Time to native code, see $nativeaot for examples.
Single file publishing | Runtime Identifier (RID) catalog | dotnet publish