mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-15 08:46:34 +01:00
Updated Install Tracks on Ubuntu 20.10 (markdown)
parent
26658e21f0
commit
530caf3d80
1 changed files with 16 additions and 41 deletions
|
|
@ -164,7 +164,7 @@ admin_email : <b>my.email@domain.com</b><br/>
|
|||
<p>For the time zone setting you can use the command</p>
|
||||
<blockquote>
|
||||
<s>>rake --rakefile=/var/www/tracks/Rakefile time:zones:local</s><br/>
|
||||
>bundle <span class="pl-c1">exec</span> rake time:zones:local
|
||||
>bundle exec rake time:zones:local
|
||||
</blockquote>
|
||||
<p>to see all available timezones on your machine</p>
|
||||
<h3>Adjust owner and owner group for the downloaded files</h3>
|
||||
|
|
@ -210,7 +210,7 @@ mysql> quit
|
|||
<blockquote>
|
||||
<p>>systemctl restart mysql.service</p>
|
||||
</blockquote>
|
||||
<p>you can use the following that MySQL is running ok</p>
|
||||
<p>you can use the following to check that MySQL is running ok</p>
|
||||
<blockquote>
|
||||
<p>>systemctl status mysql.service</p>
|
||||
</blockquote>
|
||||
|
|
@ -236,34 +236,21 @@ mysql> quit
|
|||
>bundle update
|
||||
</blockquote>
|
||||
<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>
|
||||
<p>This will set up your database with the required structure to hold Tracks data.</p>
|
||||
<p>going to the directory where Tracks is installed run</p>
|
||||
<blockquote>
|
||||
<p>>cd /var/www/tracks</p>
|
||||
<p>
|
||||
<s>>rake --rakefile=/var/www/tracks/Rakefile db:migrate RAILS_ENV=production</s>
|
||||
</p>
|
||||
<p>>bundle <span class="pl-c1">exec</span> rake db:migrate RAILS_ENV=production</p>
|
||||
>cd /var/www/tracks<br/>
|
||||
<s>>rake --rakefile=/var/www/tracks/Rakefile db:migrate RAILS_ENV=production</s><br/>
|
||||
>bundle exec rake db:migrate RAILS_ENV=production
|
||||
</blockquote>
|
||||
<p>------------</p>
|
||||
<h3>Precompile assets</h3>
|
||||
<p>Static assets (images, stylesheets, and javascript) need to be compiled in order for them to work correctly with the new asset pipeline feature in Rails.</p>
|
||||
<p>go to the directory where you installed Tracks and run</p>
|
||||
<p>going to the directory where Tracks is installed run</p>
|
||||
<blockquote>
|
||||
<p>>cd /var/www/tracks</p>
|
||||
<p>
|
||||
<s>>rake --rakefile=/var/www/tracks/Rakefile assets:precompile RAILS_ENV=production</s>
|
||||
</p>
|
||||
<p>>bundle <span class="pl-c1">exec</span> rake assets:precompile RAILS_ENV=production</p>
|
||||
>cd /var/www/tracks<br/>
|
||||
<s>>rake --rakefile=/var/www/tracks/Rakefile assets:precompile RAILS_ENV=production</s><br/>
|
||||
>bundle exec rake assets:precompile RAILS_ENV=production
|
||||
</blockquote>
|
||||
<p>------------</p>
|
||||
<p>ToDo: test this</p>
|
||||
<p>
|
||||
<br/>
|
||||
</p>
|
||||
<p>Optional; if you don't have SSL certificate<br/> <br/>generate certificates, e.g. in /home/ubuntu/certificates<br/> <br/>>openssl req -newkey rsa:2048 -nodes -keyout key.pem -out req.pem<br/>>openssl x509 -req -days 365 -in req.pem -signkey key.pem -out cert.pem<br/> <br/>Run tracks with thin + ssl</p>
|
||||
<p>(in tracks-2.3.0 folder)<br/> <br/>>bundle exec thin start -e production --ssl --ssl-verify --ssl-key-file /home/ubuntu/certificates/key.pem --ssl-cert-file /home/ubuntu/certificates/cert.pem</p>
|
||||
<p>------------</p>
|
||||
<h3>Run Apache</h3>
|
||||
<h4>Enable module rewrite</h4>
|
||||
<blockquote>>a2enmod rewrite</blockquote>
|
||||
|
|
@ -271,24 +258,12 @@ mysql> quit
|
|||
<blockquote>>systemctl restart apache2</blockquote>
|
||||
<p>you can check the status, to see that up to here everything is ok, with</p>
|
||||
<blockquote>
|
||||
<p>>systemctl status apache2.service</p>
|
||||
<p>>journalctl -xe</p>
|
||||
</blockquote>
|
||||
<p>if apache was installed correctly and is running go with your browser to <span class="nolink">http://localhost</span> you should see the Apache webserver page</p>
|
||||
<p>------------</p>
|
||||
<p>To enable or disable the automatic start of Apache2 service when you boot your machine use</p>
|
||||
<blockquote>
|
||||
<p>>systemctl enable apache2.service</p>
|
||||
<p>>systemctl disable apache2.service</p>
|
||||
</blockquote>
|
||||
<p>
|
||||
<br/>
|
||||
</p>
|
||||
<p>To start or stop manually the Apache2 service use</p>
|
||||
<blockquote>
|
||||
<p>>systemctl start apache2.service</p>
|
||||
<p>>systemctl stop apache2.service</p>
|
||||
>systemctl status apache2.service<br/>
|
||||
>journalctl -xe
|
||||
</blockquote>
|
||||
<p>if apache was installed correctly and is running go with your browser to http://localhost you should see the Apache webserver page</p>
|
||||
<p>For more information see [[Apache tips]]</p>
|
||||
|
||||
<p>------------</p>
|
||||
<h3>Setup Apache to run your website</h3>
|
||||
<p>at /etc/apache2/sites-available/ create the file tracks.conf</p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue