Stats: 3,190,980 members, 7,942,503 topics. Date: Saturday, 07 September 2024 at 11:18 AM |
Nairaland Forum / Science/Technology / Programming / Need Help/advice Installing Laravel App (540 Views)
Please I Need Your Help/advice / Please Help Advice For New Comers To Programming / After Installing Laravel Using Softaculos What Next (2) (3) (4)
Need Help/advice Installing Laravel App by airsaylongcome: 1:26am On May 21 |
I'm trying to install Cattr (cattr.app), an open source time tracking app somewhat similar to the Upwork Desktop app. Basically it tracks the time you spend on a task and takes screenshots at periodic intervals. The repo for the app is located at git.amazingcat.net/cattr/core/app. Somewhat outdated install instructions are located at docs.cattr.app/#/en/advanced/ What I have done. 1. Spun up a Fresh instance of Debian 11 2. Update repos and upgraded preinstalled apps. sudo apt update && sudo apt upgrade -y 3. Installed basic prequisites sudo apt install git wget sudo curl wget gnupg gnupg2 sb-release apt-transport-https ca-certificates software-properties-common -y 4. Installed MySQL 8.0 #Install MySQL I noticed that running sudo apt install nginx php8.2-fpm -yresulted in Apache2 getting installed causing nginx to fail when I attempt to start it using systemctl restart nginx. So I uninstalled Apache 5. Uinstall Apache sudo systemctl stop apache2 6. Restarted nginx and php8.2-fpm # Restart services to apply changes 7.Installed Node.js v18 (the app does not support versions greater than v18) # Install Node.js 8. Installed Yarn #install Yarn 9. Installed Composer #install Composer At this point, all the required pre-requisites were installed. So I switched to the website to follow their install instractions 10. Cloned the repo cd /opt 11. Started install (which went swimmingly) sudo composer install && sudo php artisan key:generate && sudo yarn Snippet from My nginx.conf (/etc/nginx/nginx.conf) server { When I eventually visit the url at http://10{.}10{.}10{.}218 I get an Error 500 with almost nothing to go on with. I have checked the storage/logs/laravel.logand I only see an older error message about Mix manifest not found at: /opt/app/public/mix-manifest.jsonwhich I have since resolved by running npm run prod. I have looked at the Chrome browser console and the errors there don't make any sense as I don't even know what to look for even though i see a handful of errors mostly about WebSocket connection to wss://10.10.10.218/app/cattr?protocol=7&client=js&version=8.4.8-rc2&flash=false Is anyone able to suggest how to troubleshoot this? Spent well over 8 hours getting to this point and I am exasperated and knackered. Please help 1 Like |
Re: Need Help/advice Installing Laravel App by Bongadu: 6:38am On May 21 |
Uninstall every Laravel components and install Ruby on rails |
Re: Need Help/advice Installing Laravel App by Karleb(m): 8:39am On May 21 |
I think the problem you are facing is that you are trying to install directly, I presume you are on a mac. Try to install Laragon or Herd, then from there run your app. I know nothing about Herd but if you would be using Laragon, you'd have to move your app into the /www folder, cd into it and install the node and composer packages. Then you run your php artisan serve and npm run dev or prod to serve both back and front-end. Screenshot your composer.Json and package.json file, let's see. |
Re: Need Help/advice Installing Laravel App by Karleb(m): 8:49am On May 21 |
Karleb: On a second look, I think you need to create a database in MySQL, the database name and password. Then put those details in your .env file. Then run your app again. 1 Like |
Re: Need Help/advice Installing Laravel App by chukwuebuka65(m): 8:55am On May 21 |
Check if you have the .env file . If it doesnt exist , create one and copy over the contents of .env.example |
Re: Need Help/advice Installing Laravel App by airsaylongcome: 10:25am On May 21 |
Karleb and Chukwuebuka65 The .env file exists with correct database credentials. The database was correctly created and seeded. |
Re: Need Help/advice Installing Laravel App by Karleb(m): 10:32am On May 21 |
airsaylongcome: Screenshot your error logs here. Both on the browser console and laravel.log. Did you forget to yarn install because I'm seeing you didn't include the step here. |
Re: Need Help/advice Installing Laravel App by chukwuebuka65(m): 10:51am On May 21 |
airsaylongcome: Check if the "APP_DEBUG" env variable is set to "true" for better error messages. |
Re: Need Help/advice Installing Laravel App by qtguru(m): 11:06am On May 21 |
This is why docker -compose exists, just use an image instead of doing it manually |
Re: Need Help/advice Installing Laravel App by airsaylongcome: 3:57pm On May 21 |
qtguru: I've been down that alley with several bruises. Make I share YAML make you epp review? Plus final product needs to be manual as I am running this on an Debian 11 LXC. Ẹ dey do me somehow to run Docker on top a virtualization container |
Re: Need Help/advice Installing Laravel App by qtguru(m): 11:31pm On May 21 |
Yes share the YAML let me take a look |
Re: Need Help/advice Installing Laravel App by Lovebuddy: 1:36am On May 22 |
qtguru: Hello, pls I need the ielts material you gave to someone here I’d be glad if I can get it from you |
Re: Need Help/advice Installing Laravel App by qtguru(m): 6:51am On May 22 |
Lovebuddy: I'll share it |
Re: Need Help/advice Installing Laravel App by airsaylongcome: 1:03pm On May 22 |
qtguru: Here's you go version: '3.9' Their bash install script: #!/bin/bash When I spin this up, the healthcheck for the cattr-frontend container returns as unhealthy. Docker is running the lates version (26.x I believe) docker-compose is v2.27 |
Re: Need Help/advice Installing Laravel App by elmas(m): 12:21am On May 23 |
airsaylongcome: Good day boss please I quoted you concerning voip asterisk on the other thread |
Re: Need Help/advice Installing Laravel App by airsaylongcome: 3:14pm On May 23 |
qtguru any luck? |
Re: Need Help/advice Installing Laravel App by qtguru(m): 4:02pm On May 23 |
airsaylongcome: Sorry was busy, I'll try it in some hours |
Re: Need Help/advice Installing Laravel App by airsaylongcome: 2:09am On May 24 |
qtguru: Appreciate |
Re: Need Help/advice Installing Laravel App by qtguru(m): 11:41am On May 25 |
airsaylongcome: I'm free now, was busy the week, let me try it out now |
(1) (Reply)
Sin Free Facebook' Attracts Thousands / Help / Help Help Help
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 53 |