Apply license from ishellΒΆ
From the server RhodeCode Enterprise is running run ishell on the instance which we want to apply the license to:
# starts the ishell interactive prompt
$ ./rcstack cli ishell
This will open an ishell interactive console. Inside the console execute the following:
In [1]: from rc_license.models import apply_license
In [2]: license = """
...: PASTE LICENSE HERE
...: """
In [3]: apply_license(license)
Out[3]: True
In [4]: Session().commit()
exit
The paste license should look similar to the below
In [2]: license = """
...: eyJ2YWxpZF90aWxsIjogMTUwNTQ5NTUwMS40MzE4MzMsICJsYXN0X25hbWUiOiAic2QiLCAidmVyIjog
...: MiwgInVzZXJzIjogMjUsICJjb21wYW55IjogImQiLCAic2lnbmF0dXJlIjogIkZQYTdhcWlBeUFDejFW
...: YkthNlMyVUkzc09zN0k5eFpyb1BTTTRUdVUvZHlQK2lUTUdaeEgybTJvbFJ0MU1CbWVEQlVKR1ZhUUVW
...: RHNNR1hvWDR3RExQUGszS0ZDckoxQU1NWWhGa0ZwUEFmTDViUTMrQ2Z2d1VkMzR4ZDM3OERZbzdaRHJs
...: """