Once you get to step 7, you would set up your Github repository in place of where you would install Laravel. This is the same with any cloud provider and webhost.
Once the project is deployed on the server, you will need to install the Composer dependencies to ensure Laravel is working. You'd do that by using cd to access the folder you just cloned your Github repository from, and then running composer install.
Services like Laravel Forge and Ploi handle a lot of this logic on the server for you and makes deploying sites and pulling changes from Github very easy. I would recommend them if you're not 100% on what you're doing.
@t9dev Oh seems that someone deleted it then? Its default in laravel. Normally you keep it up to date with the normal .env (without any passwords etc) so people can easily use it as a template
@Sinnbeck , great.
I have done what you said and now a new Apache error Not Found The requested URL was not found on this server.
Is it because I did the wrong URL ?
@t9dev Yeah that guide isnt very good. You need to actually set up a virtual host file that points to your app. You should never have /public in the url
@Sinnbeck , I tried to install a new Laravel project and it works fine, so I tried to use the same public fill on my project, yet the same problem occurs.
@t9dev if it works with a new laravel installation but not the one from the github repo then apache is working. Can you share the url perhaps? Or at least the exact error message
@Sinnbeck , tried every npm command, still ,
error message
/var/www/onboarding/node_modules/vite/bin/vite.js:2
import { performance } from 'node:perf_hooks'
^
SyntaxError: Unexpected token {
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ build: `vite build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-10-10T19_27_34_480Z-debug.log