Changes between Version 7 and Version 8 of CookBook/easyTrac
- Timestamp:
- Jan 9, 2015, 10:44:46 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBook/easyTrac
v7 v8 1 1 = easyTrac installer = 2 2 3 The easyTrac installer is a source-installation kit that installs a complete Trac environment and all its depende cies.3 The easyTrac installer is a source-installation kit that installs a complete Trac environment and all its dependencies. 4 4 5 Feedback/bugs to:5 Send feedback or bugs to: 6 6 * Email: manuel.viera.tirado at gmail.com 7 7 * Twitter: http://twitter.com/mviera … … 11 11 You can download easyTrac in either [http://github.com/mviera/easyTrac/zipball/master zip] or [http://github.com/mviera/easyTrac/tarball/master tar] formats. 12 12 13 You can also clone the project with Git from my[https://github.com/mviera Github] by running:13 You can also clone the project with Git from [https://github.com/mviera Github] by running: 14 14 {{{ 15 15 $ git clone git://github.com/mviera/easyTrac … … 19 19 20 20 The installer will compile '''Nginx''' and '''uWSGI''' and it will install all required python dependencies also. 21 But for compile Nginx and uWSGI a few dependencies are required to be installed in the system. This dependencies 22 are the following: 21 But to compile Nginx and uWSGI a few dependencies are required to be installed in the system: 23 22 24 23 === Dependencies === … … 35 34 PLEASE NOTE: You can run the easyTrac installation as root or as a normal user. Personally, I prefer to run the installation as a normal user. 36 35 37 The installer config works out of the box, but if you want, you can edit buildout.cfg and 38 modify the following parameters: 36 The installer configuration works out of the box, but if you want, you can edit buildout.cfg and modify the following parameters: 39 37 40 38 * '''nginx-http-port''': http port that will be used for Nginx. 41 * '''nginx-https-port''': https port that will be used for Nginx (in case you want to use https).39 * '''nginx-https-port''': https port that will be used for Nginx, in case you want to use https. 42 40 * '''supervisor-http-port''': http port that will be used for supervisor. 43 41 * '''host''': host ip address of fqdn. … … 48 46 * '''svn-repository-directory''': directory where the svn repositories will be created. This directory is {{{<installdir>/opt/svn/}}}, by default. 49 47 50 Once you have installed all required dependencies, you can continue with the installation process. 51 So you execute the following command: 48 Once you have installed all required dependencies, continue with the installation process and execute the following command: 52 49 {{{ 53 50 $ python bootstrap.py 54 51 }}} 55 52 56 You should have the buildout environment ready to go. Now, you must execute the buildout installation:53 You should have the buildout environment ready to be installed: 57 54 {{{ 58 55 $ ./bin/buildout … … 63 60 == How to start, stop, restart services == 64 61 65 Supervisor provides a control script to start, stop or restart our 66 services. In our supervisor we only get two services: nginx and uwsgi. 62 Supervisor provides a control script to start, stop or restart services. In our supervisor there are two services: nginx and uwsgi. 67 63 68 64 The supervisorctl syntax is: … … 82 78 $ ./bin/supervisorctl restart nginx 83 79 }}} 84 Also, supervisor provides an especial word 'all', so we don't need to specify 85 every service name. For example, if we need to restart all services: 80 Also, supervisor provides a special word 'all', so we don't need to specify every service name. For example, if we need to restart all services: 86 81 {{{ 87 82 $ ./bin/supervisorct restart all 88 83 }}} 89 84 90 Supervisor has an admin panel on where we can control our services via web. This admin control 91 panel is accesible at: 85 Supervisor has an admin panel on where we can control our services via web. This admin control panel is accessible at: 92 86 93 87 http://localhost:9000 94 88 95 NOTE: by default, the username is 'admin' and the password is 'admin.' To change the admin password, 96 edit the [supervisor] part in buildout.cfg and run bin/buildout. 89 NOTE: by default, the username is 'admin' and the password is 'admin'. To change the admin password, edit the [supervisor] part in buildout.cfg and run bin/buildout. 97 90 98 91 == How to create a Trac project == … … 112 105 $ ./bin/supervisorctl shutdown 113 106 }}} 114 1. Remove the folder <installdir>/easyTrac 107 1. Remove the folder <installdir>/easyTrac. 115 108 116 109 == Backup instructions == 117 110 118 easyTrac includes a backup script. So, if you want to make a backup you only must to 119 execute the following command: 111 easyTrac includes a backup script. So, to make a backup execute the following command: 120 112 {{{ 121 113 $ ./bin/backup 122 114 }}} 123 and all the trac projects will be backed up into a tarball to the backups directory, called '''backups'''.115 and all the Trac projects will be backed up into a tarball to the backups directory, called '''backups'''. 124 116 125 117 == Restore instructions == 126 118 127 Also, easyTrac provides a restore script , useful to restore old backups. Its usage is as simple as follow:119 Also, easyTrac provides a restore script for backups: 128 120 {{{ 129 121 $ ./bin/restore backups/backup-file.tar.gz