git clone ssh://lpackages@193.93.255.240/home/lpackages/marinar.git YOUR_PROJECTcd YOUR_PROJECTrm -rf .gitprojectcd project.env file - you can use .env.example. Changes required:APP_NAMEAPP_URLDB_DATABASEDB_USERNAMEDB_PASSWORDCOMPOSER_MEMORY_LIMIT=-1 composer installphp -d memory_limit=-1 artisan key:generatephp -d memory_limit=-1 artisan migratephp -d memory_limit=-1 artisan marinar:packagephp -d memory_limit=-1 artisan db:seed --class=\\MarinAdminSeeder php -d memory_limit=-1 artisan db:seed --class=\\ModulesSeeder php -d memory_limit=-1 artisan db:seed --class=\\TestDataSeederproject/storageproject/configproject/resourcespublic_html/filesssh lpackages@193.93.255.240git init --bare YOUR_PROJECT.gitpost-receive GIT hook and give privileges to it (for sync to public_html folder) - example contentGIT_WORK_TREE=/home/lpackages git checkout -f
public_html folder is only with php7.2GIT_WORK_TREE=/home/lpackages/public_html git checkout -f
git remote add production ssh://lpackages@193.93.255.240/home/lpackages/YOUR_PROJECT.git
git push production mastercurl -sS https://getcomposer.org/installer | php -- --install-dir=bin
cd YOUR_PATH_TO_PROJECTpublic_html folder is only with php7.2cd ~
mkdir bin
curl -sS https://getcomposer.org/installer | php -- --install-dir=bin install
alias composer="/opt/cpanel/ea-php72/root/usr/bin/php ~/bin/composer.phar"project directory and add project .env file - you can use .env.example. Changes required:cd YOUR_PATH_TO_PROJECTAPP_URLAPP_DEBUG=falseAPP_TESTING=falseDEBUGBAR_ENABLED=falseDB_DATABASEDB_USERNAMEDB_PASSWORDssh-keygen~/.ssh/id_rsa.pub~/.ssh/authorized_keysCOMPOSER_MEMORY_LIMIT=-1 composer installNote: Some PECL plugins may need to be installed
php -d memory_limit=-1 artisan migratepublic_html folder is only with php7.2/opt/cpanel/ea-php72/root/usr/bin/php -d memory_limit=-1 artisan migratephp -d memory_limit=-1 artisan marinar:packagepublic_html folder is only with php7.2/opt/cpanel/ea-php72/root/usr/bin/php -d memory_limit=-1 artisan marinar:packagephp -d memory_limit=-1 artisan db:seed --class=\\MarinAdminSeeder public_html folder is only with php7.2/opt/cpanel/ea-php72/root/usr/bin/php -d memory_limit=-1 artisan db:seed --class=\\MarinAdminSeeder php -d memory_limit=-1 artisan db:seed --class=\\ModulesSeeder public_html folder is only with php7.2/opt/cpanel/ea-php72/root/usr/bin/php -d memory_limit=-1 artisan db:seed --class=\\ModulesSeeder project/storageproject/configproject/resourcespublic_html/filespublic_html folder is only with php7.2 add .htaccess to ~/public_html#FOR HTTPS redirect
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
RewriteRule .* - [E=BASEDIR:/public_html]
RewriteRule ^(.*)$ %{ENV:BASEDIR}/$1 [L,QSA]