##// END OF EJS Templates
docker: added all the initial docker files...
docker: added all the initial docker files compose: added initial setup - fix db password secret, fix SVN as aservice 4.24.0 changes Docker: fixes for 4.24.X deployment Setup: added final fixes Config files cleanups Fix license fix

File last commit:

r1:29323844
r1:29323844
Show More
enable_svn_proxy.py
24 lines | 658 B | text/x-python | PythonLexer
"""
echo "%run path/enable_svn_proxy.py" | RC_SETTING='{"vcs_svn_proxy_http_requests_enabled":true, "vcs_svn_proxy_http_server_url": "http://localhost:8090"}' rc-ishell .dev/dev.ini
"""
import os
import json
from rhodecode.model.db import Session
from rhodecode.model.settings import VcsSettingsModel
defaults = json.dumps({
'vcs_svn_proxy_http_requests_enabled': True,
'vcs_svn_proxy_http_server_url': 'http://svn:8090'
})
def main(json_args):
model = VcsSettingsModel()
model.create_or_update_global_svn_settings(json_args)
Session().commit()
print('ok')
args = json.loads(os.environ.get('RC_SETTING') or defaults)
main(args)