diff options
author | Aidan Fitzgerald <aidan-fitz@users.noreply.github.com> | 2019-03-09 16:15:45 -0500 |
---|---|---|
committer | techknowlogick <matti@mdranta.net> | 2019-03-09 16:15:45 -0500 |
commit | f5cf9a8355c46fa5619c03465178b51171ac30b9 (patch) | |
tree | 0163eb48ca238b03612176817449133cb31e34cf /docs/content/doc/installation | |
parent | 8fffb0616866cfe7a293b457d8703724666374cb (diff) | |
download | gitea-f5cf9a8355c46fa5619c03465178b51171ac30b9.tar.gz gitea-f5cf9a8355c46fa5619c03465178b51171ac30b9.zip |
Copyedit docs (#6275)
Diffstat (limited to 'docs/content/doc/installation')
6 files changed, 34 insertions, 34 deletions
diff --git a/docs/content/doc/installation/from-binary.en-us.md b/docs/content/doc/installation/from-binary.en-us.md index 700642213c..8fa96bd96e 100644 --- a/docs/content/doc/installation/from-binary.en-us.md +++ b/docs/content/doc/installation/from-binary.en-us.md @@ -26,7 +26,7 @@ chmod +x gitea ``` ## Verify GPG signature -Gitea signs all binaries with a [GPG key](https://pgp.mit.edu/pks/lookup?op=vindex&fingerprint=on&search=0x2D9AE806EC1592E2) to prevent against unwanted modification of binaries. To validate the binary download the signature file which ends in `.asc` for the binary you downloaded and use the gpg command line tool. +Gitea signs all binaries with a [GPG key](https://pgp.mit.edu/pks/lookup?op=vindex&fingerprint=on&search=0x2D9AE806EC1592E2) to prevent against unwanted modification of binaries. To validate the binary, download the signature file which ends in `.asc` for the binary you downloaded and use the gpg command line tool. ```sh gpg --keyserver pgp.mit.edu --recv 7C9E68152594688862D62AF62D9AE806EC1592E2 @@ -49,12 +49,12 @@ Of note, configuring `GITEA_WORK_DIR` will tell Gitea where to base its working ### Prepare environment -Check that git is installed on the server, if it is not install it first. +Check that Git is installed on the server. If it is not, install it first. ```sh git --version ``` -Create user to run gitea (ex. `git`) +Create user to run Gitea (ex. `git`) ```sh adduser \ --system \ @@ -77,7 +77,7 @@ chown root:git /etc/gitea chmod 770 /etc/gitea ``` -**NOTE:** `/etc/gitea` is temporary set with write rights for user `git` so that Web installer could write configuration file. After installation is done it is recommended to set rights to read-only using: +**NOTE:** `/etc/gitea` is temporary set with write rights for user `git` so that Web installer could write configuration file. After installation is done, it is recommended to set rights to read-only using: ``` chmod 750 /etc/gitea chmod 644 /etc/gitea/app.ini @@ -90,7 +90,7 @@ chmod 644 /etc/gitea/app.ini export GITEA_WORK_DIR=/var/lib/gitea/ ``` -### Copy gitea binary to global location +### Copy Gitea binary to global location ``` cp gitea /usr/local/bin/gitea @@ -112,7 +112,7 @@ GITEA_WORK_DIR=/var/lib/gitea/ /usr/local/bin/gitea web -c /etc/gitea/app.ini ## Updating to a new version -You can update to a new version of gitea by stopping gitea, replacing the binary at `/usr/local/bin/gitea` and restarting the instance. +You can update to a new version of Gitea by stopping Gitea, replacing the binary at `/usr/local/bin/gitea` and restarting the instance. The binary file name should not be changed during the update to avoid problems in existing repositories. @@ -122,7 +122,7 @@ If you have carried out the installation steps as described above, the binary sh have the generic name `gitea`. Do not change this, i.e. to include the version number. See below for troubleshooting instructions to repair broken repositories after -an update of your gitea version. +an update of your Gitea version. ## Troubleshooting @@ -135,16 +135,16 @@ SQLite support in the binaries provided by dl.gitea.io. In this situation, it is possible to [install from source]({{< relref "from-source.en-us.md" >}}) without sqlite support. -### Running gitea on another port +### Running Gitea on another port For errors like `702 runWeb()] [E] Failed to start server: listen tcp 0.0.0.0:3000: -bind: address already in use` gitea needs to be started on another free port. This -is possible using `./gitea web -p $PORT`. It's possible another instance of gitea +bind: address already in use` Gitea needs to be started on another free port. This +is possible using `./gitea web -p $PORT`. It's possible another instance of Gitea is already running. -### Git error after updating to a new version of gitea +### Git error after updating to a new version of Gitea -If the binary file name has been changed during the update to a new version of gitea, +If the binary file name has been changed during the update to a new version of Gitea, git hooks in existing repositories will not work any more. In that case, a git error will be displayed when pushing to the repository. @@ -152,7 +152,7 @@ error will be displayed when pushing to the repository. remote: ./hooks/pre-receive.d/gitea: line 2: [...]: No such file or directory ``` -The `[...]` part of the error message will contain the path to your previous gitea +The `[...]` part of the error message will contain the path to your previous Gitea binary. To solve this, go to the admin options and run the task `Resynchronize pre-receive, @@ -160,6 +160,6 @@ update and post-receive hooks of all repositories` to update all hooks to contai the new binary path. Please note that this overwrite all git hooks including ones with customizations made. -If you aren't using the built-in to Gitea ssh server you will also need to re-write +If you aren't using the built-in to Gitea SSH server you will also need to re-write the authorized key file by running the `Update the '.ssh/authorized_keys' file with Gitea SSH keys.` task in the admin options. diff --git a/docs/content/doc/installation/from-package.en-us.md b/docs/content/doc/installation/from-package.en-us.md index 2440d6bf73..eff1d70cfa 100644 --- a/docs/content/doc/installation/from-package.en-us.md +++ b/docs/content/doc/installation/from-package.en-us.md @@ -20,7 +20,7 @@ menu: Although there is a package of Gitea in Debian's [contrib](https://wiki.debian.org/SourcesList), it is not supported directly by us. -Unfortunately the package is not maintained anymore and broken because of missing sources. +Unfortunately, the package is not maintained anymore and broken because of missing sources. Please follow the [deployment from binary]({{< relref "from-binary.en-us.md" >}}) guide instead. Should the packages get updated and fixed, we will provide up-to-date installation instructions here. diff --git a/docs/content/doc/installation/from-source.en-us.md b/docs/content/doc/installation/from-source.en-us.md index 5806b0bfcc..9baeaac5a5 100644 --- a/docs/content/doc/installation/from-source.en-us.md +++ b/docs/content/doc/installation/from-source.en-us.md @@ -23,18 +23,18 @@ environment variable and to add the go bin directory or directories **Note**: When executing make tasks that require external tools, like `make misspell-check`, Gitea will automatically download and build these as -necessary. To be able to use these you must have the `"$GOPATH/bin"` directory +necessary. To be able to use these, you must have the `"$GOPATH/bin"` directory on the executable path. If you don't add the go bin directory to the -executable path you will have to manage this yourself. +executable path, you will have to manage this yourself. -**Note 2**: Go version 1.9 or higher is required, however it is recommended to +**Note 2**: Go version 1.9 or higher is required. However, it is recommended to obtain the same version as our continuous integration, see the advice given in <a href='{{ relref "docs/advanced/hacking-on-gitea.en-us.md" }}'>Hacking on Gitea</a> ## Download -First retrieve the source code. The easiest way is to use the Go tool. Use the +First, retrieve the source code. The easiest way is to use the Go tool. Use the following commands to fetch the source and switch into the source directory. Go is quite opinionated about where it expects its source code, and simply cloning the Gitea repository to an arbitrary path is likely to lead to @@ -100,7 +100,7 @@ task e.g.: TAGS="bindata" make generate build ``` -In the default release build of our continuous integration system the build +In the default release build of our continuous integration system, the build tags are: `TAGS="bindata sqlite sqlite_unlock_notify"`. The simplest recommended way to build from source is therefore: @@ -110,7 +110,7 @@ TAGS="bindata sqlite sqlite_unlock_notify" make generate build ## Test -After following the steps above a `gitea` binary will be available in the working directory. +After following the steps above, a `gitea` binary will be available in the working directory. It can be tested from this directory or moved to a directory with test data. When Gitea is launched manually from command line, it can be killed by pressing `Ctrl + C`. diff --git a/docs/content/doc/installation/run-as-service-in-ubuntu.en-us.md b/docs/content/doc/installation/run-as-service-in-ubuntu.en-us.md index e004e3a0d3..d3b5df5b5a 100644 --- a/docs/content/doc/installation/run-as-service-in-ubuntu.en-us.md +++ b/docs/content/doc/installation/run-as-service-in-ubuntu.en-us.md @@ -29,7 +29,7 @@ Uncomment any service that needs to be enabled on this host, such as MySQL. Change the user, home directory, and other required startup values. Change the PORT or remove the -p flag if default port is used. -Enable and start gitea at boot: +Enable and start Gitea at boot: ``` sudo systemctl enable gitea sudo systemctl start gitea @@ -45,7 +45,7 @@ sudo apt install supervisor Create a log dir for the supervisor logs: ``` -# assuming gitea is installed in /home/git/gitea/ +# assuming Gitea is installed in /home/git/gitea/ mkdir /home/git/gitea/log/supervisor ``` @@ -57,7 +57,7 @@ sudo vim /etc/supervisor/supervisord.conf Append the configuration from the sample [supervisord config](https://github.com/go-gitea/gitea/blob/master/contrib/supervisor/gitea). -Change the user(git) and home(/home/git) settings to match the deployment +Change the user (git) and home (/home/git) settings to match the deployment environment. Change the PORT or remove the -p flag if default port is used. Lastly enable and start supervisor at boot: diff --git a/docs/content/doc/installation/windows-service.en-us.md b/docs/content/doc/installation/windows-service.en-us.md index 9f2968ae02..6a4b33cb3f 100644 --- a/docs/content/doc/installation/windows-service.en-us.md +++ b/docs/content/doc/installation/windows-service.en-us.md @@ -46,7 +46,7 @@ sc create gitea start= auto binPath= ""C:\gitea\gitea.exe" web --config "C:\gite Do not forget to replace `C:\gitea` with the correct Gitea directory. Open "Windows Services", search for the service named "gitea", right-click it and click on -"Run". If everything is OK Gitea will be reachable on `http://localhost:3000` (or the port +"Run". If everything is OK, Gitea will be reachable on `http://localhost:3000` (or the port that was configured). ## Unregister as a service diff --git a/docs/content/doc/installation/with-docker.en-us.md b/docs/content/doc/installation/with-docker.en-us.md index 08e6e7c452..f2c32a9847 100644 --- a/docs/content/doc/installation/with-docker.en-us.md +++ b/docs/content/doc/installation/with-docker.en-us.md @@ -20,13 +20,13 @@ possible to always use the latest stable tag or to use another service that hand Docker images. This reference setup guides users through the setup based on `docker-compose`, but the installation -of `docker-compose` is out of scope of this documentation. To install `docker-compose` itself follow +of `docker-compose` is out of scope of this documentation. To install `docker-compose` itself, follow the official [install instructions](https://docs.docker.com/compose/install/). ## Basics The most simple setup just creates a volume and a network and starts the `gitea/gitea:latest` -image as a service. Since there is no database available one can be initialized using SQLite3. +image as a service. Since there is no database available, one can be initialized using SQLite3. Create a directory like `gitea` and paste the following content into a file named `docker-compose.yml`. Note that the volume should be owned by the user/group with the UID/GID specified in the config file. If you don't give the volume correct permissions, the container may not start. @@ -187,7 +187,7 @@ services: To use named volumes instead of host volumes, define and use the named volume within the `docker-compose.yml` configuration. This change will automatically create the required volume. You don't need to worry about permissions with -named volumes, Docker will deal with that automatically. +named volumes; Docker will deal with that automatically. ```diff version: "2" @@ -230,10 +230,10 @@ Notice: if using a non-3000 port on http, change app.ini to match ## Install -After starting the Docker setup via `docker-compose` Gitea should be available using a +After starting the Docker setup via `docker-compose`, Gitea should be available using a favorite browser to finalize the installation. Visit http://server-ip:3000 and follow the installation wizard. If the database was started with the `docker-compose` setup as -documented above please note that `db` must be used as the database hostname. +documented above, please note that `db` must be used as the database hostname. ## Environments variables @@ -252,7 +252,7 @@ You can configure some of Gitea's settings via environment variables: * `DB_HOST`: **localhost:3306**: Database host address and port. * `DB_NAME`: **gitea**: Database name. * `DB_USER`: **root**: Database username. -* `DB_PASSWD`: **"<empty>"**: Database user password. Use \`your password\` for quoting if you use special characters in the password. +* `DB_PASSWD`: **"\<empty>"**: Database user password. Use \`your password\` for quoting if you use special characters in the password. * `INSTALL_LOCK`: **false**: Disallow access to the install page. * `SECRET_KEY`: **""**: Global secret key. This should be changed. If this has a value and `INSTALL_LOCK` is empty, `INSTALL_LOCK` will automatically set to `true`. * `DISABLE_REGISTRATION`: **false**: Disable registration, after which only admin can create accounts for users. @@ -263,8 +263,8 @@ You can configure some of Gitea's settings via environment variables: # Customization Customization files described [here](https://docs.gitea.io/en-us/customizing-gitea/) should -be placed in `/data/gitea` directory. If using host volumes it's quite easy to access these -files; for named volumes this is done through another container or by direct access at +be placed in `/data/gitea` directory. If using host volumes, it's quite easy to access these +files; for named volumes, this is done through another container or by direct access at `/var/lib/docker/volumes/gitea_gitea/_data`. The configuration file will be saved at `/data/gitea/conf/app.ini` after the installation. @@ -285,7 +285,7 @@ docker-compose up -d Since SSH is running inside the container, you'll have to pass SSH from the host to the container if you wish to use SSH support. If you wish to do this without running the container -SSH on a non-standard port (or move your host port to a non-standard port) you can forward +SSH on a non-standard port (or move your host port to a non-standard port), you can forward SSH connections destined for the container with a little extra setup. This guide assumes that you have created a user on the host called `git` which shares the same |