C
C#2mo ago
Strax

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?
No description
22 Replies
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Strax
Strax2mo ago
:PauseBusiness: Thanks
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Strax
Strax2mo ago
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
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Strax
Strax2mo ago
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
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Strax
Strax2mo ago
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
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Strax
Strax2mo ago
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
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Strax
Strax2mo ago
I really only need to deploy the API and the DB
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Strax
Strax2mo ago
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
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Strax
Strax2mo ago
the code is being written in VS right now
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Strax
Strax2mo ago
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
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Strax
Strax2mo ago
I will annoy you later when it's actually time to deploy it :)
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX2mo ago
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:
<RuntimeIdentifier>RID</RuntimeIdentifier>
<PublishSingleFile>true</PublishSingleFile>
<RuntimeIdentifier>RID</RuntimeIdentifier>
<PublishSingleFile>true</PublishSingleFile>
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
Want results from more Discord servers?
Add your server