mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-16 01:06:32 +01:00
Updated Install Tracks on Ubuntu 20.10 (markdown)
parent
c64d279473
commit
a6c235a092
1 changed files with 11 additions and 20 deletions
|
|
@ -135,15 +135,15 @@
|
|||
>nano database.yml
|
||||
</blockquote>
|
||||
<p>Normally you edit only the "production" section</p>
|
||||
<p>the words `marked` are the names you need to choose for the database, the user and password. This must match what you later use when manually creates the database.</p>
|
||||
<p>the words in <b>bold</b> are the names you need to choose for the database, the user and password. This must match what you later use when manually creates the database.</p>
|
||||
<blockquote>
|
||||
production:<br/>
|
||||
adapter: mysql2<br/>
|
||||
database: *tempe*<br/>
|
||||
database: <b>tempe</b><br/>
|
||||
encoding : utf8<br/>
|
||||
host: localhost<br/>
|
||||
username: *daniel*<br/>
|
||||
password: *DANIEL*<br/>
|
||||
username: <b>daniel</b><br/>
|
||||
password: <b>DANIEL</b><br/>
|
||||
</blockquote>
|
||||
<p>if you use sqlite</p>
|
||||
<blockquote>
|
||||
|
|
@ -160,10 +160,11 @@ production:<br/>
|
|||
</blockquote>
|
||||
<p>Choose a new secret token and set the correct time zone</p>
|
||||
<blockquote>
|
||||
secret_token: '*change-me*'<br/>
|
||||
time_zone: '*UTC*'<br/>
|
||||
admin_email : *my.email@domain.com*<br/>
|
||||
secret_token: '<b>change-me</b>'<br/>
|
||||
time_zone: '<b>UTC</b>'<br/>
|
||||
admin_email : <b>my.email@domain.com</b><br/>
|
||||
</blockquote>
|
||||
<p>If you intend to use Tracks behind a web server or reverse proxy with https enabled, ensure to set force_ssl option to true.</p>
|
||||
<p>
|
||||
<br/>
|
||||
</p>
|
||||
|
|
@ -173,10 +174,6 @@ admin_email : *my.email@domain.com*<br/>
|
|||
>bundle <span class="pl-c1">exec</span> rake time:zones:local
|
||||
</blockquote>
|
||||
<p>to see all available timezones on your machine</p>
|
||||
<p>
|
||||
<br/>
|
||||
</p>
|
||||
<p>If you intend to use Tracks behind a web server or reverse proxy with https enabled, ensure to set force_ssl option to true.</p>
|
||||
<h3>Adjust owner and owner group for the downloaded files</h3>
|
||||
<p>All the files should be owned by the user ''www-data'' which is the user that runs Apache.</p>
|
||||
<p>To set the owner and the owner group of all the files to www-data, at /var/www execute</p>
|
||||
|
|
@ -195,19 +192,13 @@ admin_email : *my.email@domain.com*<br/>
|
|||
</blockquote>
|
||||
<p>The ''find'' and ''chmod'' commands will set permissions as ''700'' for all directories and files inside the ''script'' directory.</p>
|
||||
<p>All other files will have permissions set to ''600''.</p>
|
||||
|
||||
|
||||
<p>------------</p>
|
||||
<h3>Manually create the database</h3>
|
||||
<p>Tracks is tested on MySQL and SQLite, but PostgreSQL can also be used.</p>
|
||||
<p>Tracks is tested on MySQL (MariaDB?) and SQLite, but PostgreSQL can also be used.</p>
|
||||
<p>Of the three, SQLite requires the least configuration but is also the least performant and may make it difficult to operate in the future.</p>
|
||||
<p>We recommend either MySQL or PostgreSQL.</p>
|
||||
<p>Whatever your choice, the appropriate database software must be installed.</p>
|
||||
<p>
|
||||
<br/>
|
||||
</p>
|
||||
<p>Create MySQL database and grant access to user</p>
|
||||
<p>You need to create a database and database-user to use with Tracks, in this guide the name of the database is <strong>tempe</strong>, we create a user <strong>daniel</strong> with a password <strong>DANIEL</strong> with all priviliges to access the database<em> </em>
|
||||
<h4>Create MySQL database and grant access to user</h4>
|
||||
<p>You need to create a database and database-user to use with Tracks, in this guide the name of the database is <strong>tempe</strong>, we create a user <strong>daniel</strong> with a password <strong>DANIEL</strong> with all privileges to access the database<em> </em>
|
||||
</p>
|
||||
<blockquote>
|
||||
<p>>mysql -u root -p</p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue