From 7532da945d47fdf423ab507ec8be3d4b50508a65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EF=BB=BFghost-from-the-past?= Date: Mon, 14 Jun 2021 09:50:39 +0200 Subject: [PATCH] Updated Install Tracks 2.5 on Ubuntu 20.10 (markdown) --- Install-Tracks-2.5-on-Ubuntu-20.10.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Install-Tracks-2.5-on-Ubuntu-20.10.md b/Install-Tracks-2.5-on-Ubuntu-20.10.md index fae7afb..144fbac 100644 --- a/Install-Tracks-2.5-on-Ubuntu-20.10.md +++ b/Install-Tracks-2.5-on-Ubuntu-20.10.md @@ -240,6 +240,12 @@ mysql> quit >rake --rakefile=/var/www/tracks/Rakefile db:migrate RAILS_ENV=production
>bundle exec rake db:migrate RAILS_ENV=production +

If you get the error : "ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime", that means that yourJavaScript runtime has lost its magic or you don't have a JavaScript runtime installed.

+

When we installed "libapache2-mod-passenger" it suggested to install "nodejs"; so just install (or re-install) it."

+
+>apt install nodejs +
+

Precompile assets

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.

going to the directory where Tracks is installed run