- Create the subdomain you want the app to run on
- Add an A* record for that subdomain in namecheap
- Navigate to the subdomain folder through SSH and move cgi-bin outside
- Remove all old files using
rm -rf *
then, bring back cgi-bin - Copy an old github remote url that has a personal access token
- Clone the repo to the subdomain folder using
git clone url .
- Set up rebase as falses
git config pull.rebase false
- Copy the .env file from local to remote
- Copy an old .htaccess to the root directory from an older project
- Install depenedencies
composer install
- Configure the DB
- Enjoy your website
Last active
July 27, 2021 20:10
-
-
Save vicradon/d7d46a0c54122b7757f5c70bcc13cefd to your computer and use it in GitHub Desktop.
How to deploy Laravel to shared hosting
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment