You can create a new database and user in your cPanel, then give the user access to the database. Save the username and password. Update the .env file with the new database information. I hope to make videos on setting up a database and maintaining the .env file after deploying new changes to Git.
@@rezwansaki our env got set each time we push changes. I found this guidance on how to set a variables for your env file: docs.github.com/en/actions/learn-github-actions/variables. I have not tried yet.
@@rezwansaki Hello, I found this solution by chance that we can add our secret values to the env file, note that I have not tested it yet: stackoverflow.com/a/69162105/5231926
Hello first of all thank you for this awesome solution, there is juste one thing i didn't get after deployment the public folder should be outside in the route directory, is this should be done manually or github actions should have done it for us ?
Hi, moving the files from public to project folder is not a good idea as it may expose some files to some attackers. You just add a htaccess annd enter some code which i will add in the description in a moment. Let me know if it works.
Hi, yes i have the same experience. all we have to do is to download the .env file to our computer and you open the file and copy and paste them every time we push new changes. Of couse I know this is tiring us but we have no choice. 🤣. sorry for the late response.
Okay. If you use a shared hosting server, look for the Databases section in the cPanel, select MySQL Databases, and Create a new database, user, and password. Then scroll down to Add User to Database and click Add to assign the database to the user. Please remember to save the username and password. Go to File Explore to look for your Laravel project and create a new file named .env and add your database name, username, and password. That is it.
Syncing the database file with live cPanel is feasible, but importing the file directly into the database management system is not possible; manual importing is required.
Hi your tutorial is marvelous but i am getting an error -> Error: Unable to resolve action `magdev/magtech@1.0.0`, unable to find version `1.0.0` please help me to solve, what should be before and after slash(/) and how can i find the version of github my repository, this error come from line uses: magdev/magtech@1.0.0
Is it a npm package or composer? because I cannot find this package in npm or composer that is why you got this error. Please remove this package and trying again
This was helpful. Thank you.
Hello, brother it worked great but now what should we do after this like setting up .env , database etc. what we need to do after this . please help.
You can create a new database and user in your cPanel, then give the user access to the database. Save the username and password. Update the .env file with the new database information. I hope to make videos on setting up a database and maintaining the .env file after deploying new changes to Git.
Action has completed, but those files are not available in cpanel. Plz help.
Oh bro. it can be that your folders and files may be saved to somewhere else.
how can I live laravel project without moving public folder and changing index.php file manually by github action?
you can use .htaccess to access to public folder without moving them
@@larafluttery my '.env' file replace all time after git push. how can I avoid this?
@@rezwansaki our env got set each time we push changes. I found this guidance on how to set a variables for your env file: docs.github.com/en/actions/learn-github-actions/variables. I have not tried yet.
@@larafluttery Thanks a lot.
@@rezwansaki Hello, I found this solution by chance that we can add our secret values to the env file, note that I have not tested it yet: stackoverflow.com/a/69162105/5231926
Hello first of all thank you for this awesome solution, there is juste one thing i didn't get after deployment the public folder should be outside in the route directory, is this should be done manually or github actions should have done it for us ?
Hi, moving the files from public to project folder is not a good idea as it may expose some files to some attackers. You just add a htaccess annd enter some code which i will add in the description in a moment. Let me know if it works.
Hi I have added .htaccess file to the github repository. Thanks :)
@@larafluttery i did not work
hi first time deploy its work thanks but i have one problem when push new code then replace my .env file why?
Hi, yes i have the same experience. all we have to do is to download the .env file to our computer and you open the file and copy and paste them every time we push new changes. Of couse I know this is tiring us but we have no choice. 🤣. sorry for the late response.
@@larafluttery ohh no, bro please find solutions if have any solutions this please make video
@@larafluttery can we remove .env replacement action
I don't know if it would work but we can give it a try and see. Let us know if it works.
@@myhyipscript5351 exclude the code for copying and renaming .env file
I am getting the error below
Error: getaddrinfo ENOTFOUND *** (control socket)
Hi, this error is totally unfamiliar to me. can you please get a full error for us to take a look at?
me too
just change ftp server to shared ip address
My uploaded images link is broken, do you have any solutions?
Hi, please where did you store your images? public folder or storage folder?
thanks bro
Amazing 🎉
Where can I get the workflow yaml file
you need to create a yaml file inside .github > workflows folder
hey.. I am getting an error in Sync files, Please help me
Okay what error gave you?
@@larafluttery Error: FTPError: 421 Home directory not available - aborting
thank you! you helped me a lot.♥
thanks so much
hi.. how to setup database and env
Okay. If you use a shared hosting server, look for the Databases section in the cPanel, select MySQL Databases, and Create a new database, user, and password. Then scroll down to Add User to Database and click Add to assign the database to the user. Please remember to save the username and password. Go to File Explore to look for your Laravel project and create a new file named .env and add your database name, username, and password. That is it.
PLease suplly the workflow code
Kindly check it in the description
@@larafluttery Thank you, Brother I am struggling to exclude certain files could youu kindly assist
Mr. Kgethego Ledwaba, you are welcome. Okay, sure, what challenges?
@@larafluttery I’m sorted thanks,
I had to change my document’s route
@@kgethegodevGreat!
Is there a solution to transfer mysql database from localhost to live cpanel with github. Is this possible?
kindly answer. Thanks
Syncing the database file with live cPanel is feasible, but importing the file directly into the database management system is not possible; manual importing is required.
Hi your tutorial is marvelous but i am getting an error -> Error: Unable to resolve action `magdev/magtech@1.0.0`, unable to find version `1.0.0` please help me to solve,
what should be before and after slash(/) and how can i find the version of github my repository, this error come from line uses: magdev/magtech@1.0.0
Is it a npm package or composer? because I cannot find this package in npm or composer that is why you got this error. Please remove this package and trying again