composer create-project laravel/laravel project && cd projectproject/composer.json...
"repositories": [
{
"type": "composer",
"url": "https://lpackages.ant-rt.com/api/[TOKEN]"
}
]
...
"minimum-stability": "dev",project/.envAPP_TESTING=true
APP_URL=[YOUR_URL]
TIMEZONE=Europe/Sofia
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=testing
DB_USERNAME=homestead
DB_PASSWORD=secret
FILESYSTEM_DISK=public_htmlmarinar CMScomposer require --dev marinar/marinarproject/commands_replace_env.php, if needed for special php and composer commands:<?php
return [
'parts' => [
'php' => '/opt/php-8.1/bin/php -d memory_limit=-1',
'composer' => '/opt/php-8.1/bin/php -d memory_limit=-1 /home/test/on_server/composer.phar',
]
];NOTE: DO NOT USE ALIASES!!!
marinarphp artisan db:seed --class="\\Marinar\\Marinar\\Database\\Seeders\\MarinarInstallSeeder"
ssh 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 installproject directory and add project .env file - you can use .env.example. Changes required:cd YOUR_PATH_TO_PROJECTMARINAR_INSTALL_BEHAVIOR=falseMARINAR_DELETE_BEHAVIOR=2APP_URLAPP_DEBUG=falseAPP_TESTING=falseDEBUGBAR_ENABLED=falseDB_DATABASEDB_USERNAMEDB_PASSWORDCOMPOSER_MEMORY_LIMIT=-1 composer install --no-devphp -d memory_limit=-1 artisan migratephp -d memory_limit=-1 artisan db:seedproject/storageproject/configproject/resourcespublic_html/filespublic_html folder is only with php8.1 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]