Last active
November 23, 2024 13:48
-
-
Save galvao/212dfae3e4d1190a7826459d6087c00f to your computer and use it in GitHub Desktop.
How to manually setup a laravel project on OpenSUSE Tumbleweed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
composer global require laravel/installer && \ | |
sudo ln -s ~/.config/composer/vendor/laravel/installer/bin/laravel /usr/local/bin/ && \ | |
laravel new project-name && \ # This may yield an error about dependencies hence manually installing league/flysystem | |
# sudo zypper in php-fileinfo <- If not already installed | |
cd project-name && \ | |
composer require league/flysystem && \ | |
composer update && \ | |
sudo chown -R user:wwwrun ../project-name && \ | |
sudo chmod -R 775 ../project-name && \ | |
chmod -R 777 storage && \ | |
# sudo npm install pm2 -g if not already installed | |
npm install && \ | |
pm2 --name project-name start npm -- run dev && \ | |
php artisan key:generate && \ | |
# Configure dtabase connection in the .env file | |
php artisan migrate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment