equal
deleted
inserted
replaced
2898 ui.write(repo.root + "\n") |
2898 ui.write(repo.root + "\n") |
2899 |
2899 |
2900 def serve(ui, repo, **opts): |
2900 def serve(ui, repo, **opts): |
2901 """start stand-alone webserver |
2901 """start stand-alone webserver |
2902 |
2902 |
2903 Start a local HTTP repository browser and pull server. |
2903 Start a local HTTP repository browser and pull server. You can use |
|
2904 this for ad-hoc sharing and browing of repositories. It is |
|
2905 recommended to use a real web server to serve a repository for |
|
2906 longer periods of time. |
|
2907 |
|
2908 Please note that the server does not implement access control. |
|
2909 This means that, by default, anybody can read from the server and |
|
2910 nobody can write to it by default. Set the ``web.allow_push`` |
|
2911 option to ``*`` to allow everybody to push to the server. You |
|
2912 should use a real web server if you need to authenticate users. |
2904 |
2913 |
2905 By default, the server logs accesses to stdout and errors to |
2914 By default, the server logs accesses to stdout and errors to |
2906 stderr. Use the -A/--accesslog and -E/--errorlog options to log to |
2915 stderr. Use the -A/--accesslog and -E/--errorlog options to log to |
2907 files. |
2916 files. |
2908 |
2917 |