Skip to content

Instantly share code, notes, and snippets.

@galvao
Last active November 23, 2024 13:48
Show Gist options
  • Save galvao/212dfae3e4d1190a7826459d6087c00f to your computer and use it in GitHub Desktop.
Save galvao/212dfae3e4d1190a7826459d6087c00f to your computer and use it in GitHub Desktop.
How to manually setup a laravel project on OpenSUSE Tumbleweed
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