.. _hosted-solution:

Deploy |RCE| From a Hosted Server
=================================

If you wish to deploy your own |RCE| instance from something like a
`Digital Ocean`_ droplet, or a `hetzner`_ server use the following
instructions to get it setup.

I'm using an Ubuntu 22.04 image for the purposes of this
tutorial, but all other Unix environments will be pretty similar. You can
check out the full lists of supported platforms and versions in the
:ref:`system-overview-ref` section.


Create a Digital Ocean Droplet
------------------------------

1. Sign into Digital Ocean.
2. Create a Droplet choosing Ubuntu 22.04 as your |os|.
3. (Optional) Add SSH keys if you have them set up.

Configure Your Server
---------------------

Once you have your server created, you need to sign into it and set it up to
host |RCE|.

1. Open a terminal and sign into your server. Digital Ocean will mail you the
   IP address. You'll need to change your password on the first login if you
   don not have SSH keys set up.

.. code-block:: bash

    $ ssh root@203.0.113.113


Install |RCS|
-------------

|RCS| will install and manage the package dependencies for your |RCE| instance.

Please refer to this documentation for quick installation
:ref:`Quick install tutorial <rcstack:quick_installation>`


Once restarted, you should see a clean |RCE| instance running on the IP
address, or the domain you have set up.

.. image:: ../images/clean-rce.png
   :alt: A fresh RhodeCode Enterprise Instance

.. _Digital Ocean: https://www.digitalocean.com/
.. _hetzner: https://www.hetzner.de/en/
