You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

deployment.md 2.9 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. ---
  2. uid: Guides.Concepts.Deployment
  3. title: Deploying the Bot
  4. ---
  5. # Deploying the Bot
  6. After finishing your application, you may want to deploy your bot to a
  7. remote location such as a Virtual Private Server (VPS) or another
  8. computer so you can keep the bot up and running 24/7.
  9. ## Recommended VPS
  10. For small-medium scaled bots, a cheap VPS (~$5) might be sufficient
  11. enough. Here is a list of recommended VPS provider.
  12. * [DigitalOcean](https://www.digitalocean.com/)
  13. * Description: American cloud infrastructure provider headquartered
  14. in New York City with data centers worldwide.
  15. * Location(s):
  16. * Asia: Singapore, India
  17. * America: Canada, United States
  18. * Europe: Netherlands, Germany, United Kingdom
  19. * Based in: United States
  20. * [Vultr](https://www.vultr.com/)
  21. * Description: DigitalOcean-like
  22. * Location(s):
  23. * Asia: Japan, Australia, Singapore
  24. * America: United States
  25. * Europe: United Kingdom, France, Netherlands, Germany
  26. * Based in: United States
  27. * [OVH](https://www.ovh.com/)
  28. * Description: French cloud computing company that offers VPS,
  29. dedicated servers and other web services.
  30. * Location(s):
  31. * Asia: Australia, Singapore
  32. * America: United States, Canada
  33. * Europe: United Kingdom, Poland, Germany
  34. * Based in: Europe
  35. * [Scaleway](https://www.scaleway.com/)
  36. * Description: Cheap but powerful VPS owned by [Online.net](https://online.net/).
  37. * Location(s):
  38. * Europe: France, Netherlands
  39. * Based in: Europe
  40. * [Time4VPS](https://www.time4vps.eu/)
  41. * Description: Affordable and powerful VPS Hosting in Europe.
  42. * Location(s):
  43. * Europe: Lithuania
  44. * Based in: Europe
  45. ## .NET Core Deployment
  46. > [!NOTE]
  47. > This section only covers the very basics of .NET Core deployment.
  48. > To learn more about deployment, visit [.NET Core application deployment]
  49. > by Microsoft.
  50. By default, .NET Core compiles all projects as a DLL file, so that any
  51. .NET Core runtime can execute the application.
  52. You may execute the application via `dotnet myprogram.dll` assuming you
  53. have the dotnet CLI installed.
  54. When redistributing the application, you may want to publish the
  55. application, or in other words, create a self-contained package
  56. for use on another machine without installing the dependencies first.
  57. This can be achieved by using the dotnet CLI too on the development
  58. machine:
  59. * `dotnet publish -c Release`
  60. Additionally, you may want to target a specific platform when
  61. publishing the application so you may use the application without
  62. having to install the Core runtime on the target machine. To do this,
  63. you may specify an [Runtime ID] upon build/publish with the `-r`
  64. option.
  65. For example, when targeting a Windows 10 machine, you may want to use
  66. the following to create the application in Windows executable
  67. format (.exe):
  68. * `dotnet publish -c Release -r win10-x64`
  69. [.NET Core application deployment]: https://docs.microsoft.com/en-us/dotnet/core/deploying/
  70. [Runtime ID]: https://docs.microsoft.com/en-us/dotnet/core/rid-catalog