mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-15 16:56:32 +01:00
Updated Install Tracks on Ubuntu 20.10 (markdown)
parent
c582b03922
commit
26658e21f0
1 changed files with 11 additions and 27 deletions
|
|
@ -144,15 +144,7 @@ production:<br/>
|
|||
encoding : utf8<br/>
|
||||
host: localhost<br/>
|
||||
username: <b>daniel</b><br/>
|
||||
password: <b>DANIEL</b><br/>
|
||||
</blockquote>
|
||||
<p>if you use sqlite</p>
|
||||
<blockquote>
|
||||
production:<br/>
|
||||
adapter: sqlite3<br/>
|
||||
database: db/tracks-20-blank.sqlite3.db<br/>
|
||||
pool: 5<br/>
|
||||
timeout: 5000<br/>
|
||||
password: <b>DaNiElPsW</b><br/>
|
||||
</blockquote>
|
||||
<h4>edit the content of site.yml</h4>
|
||||
<p>you can use the nano text editor</p>
|
||||
|
|
@ -194,23 +186,17 @@ admin_email : <b>my.email@domain.com</b><br/>
|
|||
<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>
|
||||
<h3>Manually create the database</h3>
|
||||
<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>
|
||||
<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>
|
||||
<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>DaNiElPsW</strong> with all privileges to access the database</p>
|
||||
<blockquote>
|
||||
>mysql -u root -p<br/>
|
||||
mysql> CREATE DATABASE <em> <strong>tempe</strong> </em> CHARACTER SET UTF8;<br/>
|
||||
mysql> CREATE USER <strong>daniel</strong>@localhost IDENTIFIED WITH mysql_native_password BY '<strong>DANIEL</strong>';<br/>
|
||||
mysql> CREATE USER <strong>daniel</strong>@localhost IDENTIFIED WITH mysql_native_password BY '<strong>DaNiElPsW</strong>';<br/>
|
||||
mysql> GRANT USAGE ON *.* TO daniel@localhost;<br/>
|
||||
mysql> GRANT ALL PRIVILEGES ON <em> <strong>tempe</strong> </em>.* TO daniel@localhost;<br/>
|
||||
mysql> GRANT GRANT OPTION ON <em> <strong>tempe</strong> </em>.* TO daniel@localhost; # Enables you to grant to or revoke from other users those privileges that you yourself possess.<br/>
|
||||
mysql>quit;
|
||||
</blockquote>
|
||||
<p>Note: for the dump of the database you need to add the <strong>global</strong> PROCESS privilege to the user running the command</p>
|
||||
<p>Note: for the dump of the database (using mysqldump) you need to add the <strong>global</strong> PROCESS privilege to the user running the command</p>
|
||||
<blockquote>
|
||||
mysql>GRANT PROCESS ON *.* TO daniel@localhost;
|
||||
</blockquote>
|
||||
|
|
@ -222,25 +208,24 @@ mysql> quit
|
|||
</blockquote>
|
||||
<p>if needed you can restart the MySQL service</p>
|
||||
<blockquote>
|
||||
<p>>service mysql restart</p>
|
||||
<p>>systemctl restart mysql.service</p>
|
||||
</blockquote>
|
||||
<p>you can use the following that MySQL is running ok</p>
|
||||
<blockquote>
|
||||
<p>>service mysql status</p>
|
||||
<p>>systemctl status mysql.service</p>
|
||||
</blockquote>
|
||||
<p>to explicitly change an already existent user to use mysql_native_password you can use these commands</p>
|
||||
<blockquote>
|
||||
<p>mysql> ALTER USER 'daniel'@'localhost' IDENTIFIED WITH mysql_native_password BY 'daniel';</p>
|
||||
<p>mysql> ALTER USER 'daniel'@'localhost' IDENTIFIED WITH mysql_native_password BY 'DaNiElPsW';</p>
|
||||
<p>mysql> FLUSH PRIVILEGES;</p>
|
||||
</blockquote>
|
||||
<p>------------</p>
|
||||
<h3>Install the required Ruby libraries known as ‘gems’</h3>
|
||||
<p>The Bundler tool makes it easy to install all the gems that Tracks needs, and ensures that they are all the correct versions.</p>
|
||||
<p>go to the directory where you installed Tracks and run</p>
|
||||
<blockquote>
|
||||
<p>>cd /var/www/tracks</p>
|
||||
<p>>bundle config set without 'development test sqlite'</p>
|
||||
<p>>bundle install</p>
|
||||
>cd /var/www/tracks<br/>
|
||||
>bundle config set without 'development test sqlite'<br/>
|
||||
>bundle install
|
||||
</blockquote>
|
||||
<p>This can take some time depending on the speed of your internet connection and the speed of the system you are installing Tracks on.</p>
|
||||
<p>
|
||||
|
|
@ -248,9 +233,8 @@ mysql> quit
|
|||
</p>
|
||||
<p>later in time you can update with</p>
|
||||
<blockquote>
|
||||
<p>>bundle update</p>
|
||||
>bundle update
|
||||
</blockquote>
|
||||
<p>------------</p>
|
||||
<h3>Populate database</h3>
|
||||
<p>This will set up your database with the required structure to hold Tracks’ data.</p>
|
||||
<p>go to the directory where you installed Tracks and run</p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue