Redis administration for humans. (www.TorqueApp.org)
Before running Torque, please make sure you have the following enabled/installed on your machine:
- Redis
- Apache 2.x
- Composer
- Git cli
- PHP v 5.6 or above with the following extensions:
- mbstring
- php-xml
This will download the latest version of Torque under the directory /var/www/html/torque.app
> cd /var/www/html
> git clone https://github.com/soubhikchatterjee/torque.git torque.app
This will download the required packages for Torque.
> cd torque.app
> composer update
> cp .env.example .env
> php artisan cache:clear
> php artisan clear-compiled
> sudo chmod -R 777 storage
> sudo chmod -R 777 bootstrap/cache
> php artisan key:generate
> cd /etc/apache2/sites-available
> sudo cp 000-default.conf torque.conf
> sudo vi torque.conf
and replace the current content with the following:
<VirtualHost *:80>
ServerName torque.app
ServerAlias www.torque.app
ServerAdmin admin@torque.app
DocumentRoot /var/www/html/torque.app/public
ErrorLog /var/www/html/torque.app/storage/logs/apache_error.log
CustomLog /var/www/html/torque.app/storage/logs/apache_access.log combined
<Directory "/var/www/html/torque.app/public">
Allowoverride All
</Directory>
</VirtualHost>
> sudo a2ensite torque.conf
Run the configtest command to check whether there are any errors in the newly added configuration files
> sudo apachectl configtest
> sudo vi /etc/hosts
127.0.0.1 torque.app
sudo /etc/init.d/dns-clean start
> sudo a2enmod rewrite
> sudo service apache2 reload
> service apache2 restart
You should be all set now! 👍
You can access Torque by hitting the link http://torque.app in your web browser.