composer install
- Install dependenciesbin/magento setup:install
- Install Magentobin/magento setup:upgrade
- Update database schemabin/magento setup:di:compile
- Compile dependency injectionbin/magento setup:static-content:deploy
- Deploy static assets
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
dbx() { | |
echo "Enter the tag (e.g., markoshust/magento-php:8.4-fpm-0):" | |
read -r tag | |
if [ -z "$tag" ]; then | |
echo "Error: Tag cannot be empty" | |
return 1 | |
fi | |
echo "You entered: $tag" |
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
<?php | |
namespace Macademy\Minerva\Model\ResourceModel\Faq\Grid; | |
class Collection extends \Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult | |
{ | |
protected function _initSelect() | |
{ | |
parent::_initSelect(); | |
// Add your join statements here |
Set up GitHub Actions to handle deployments for your Laravel application. This has similar functionality to Laravel Forge without the recurring cost. GitHub Actions can be used to automate your deployment process on every push to your repository.
- Server Access: Ensure you have SSH access to your server where the Laravel app will be deployed.
- Secrets: Store sensitive information such as your server's IP address, SSH username, and private SSH key in GitHub Secrets. Go to your GitHub repository, navigate to "Settings" > "Secrets and variables" > "Actions", and add the following secrets:
DEPLOY_SERVER_IP
: Your server's IP address.DEPLOY_SERVER_USER
: Your SSH username.DEPLOY_SERVER_KEY
: Your private SSH key. Make sure this key is authorized to access your server (~/.ssh/authorized_keys
).
DEPLOY_SERVER_DIR
: The directory where you'd like to deploy your app, relative to/var/www/
. Ex:example.com
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
#!/bin/bash | |
# Function to cleanup processes on script exit | |
cleanup() { | |
echo "Cleaning up..." | |
./vendor/bin/sail down | |
kill "$(jobs -p)" 2>/dev/null | |
exit | |
} |
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
<?php | |
// 3. Create a custom collection class that extends SearchResult. | |
declare(strict_types=1); | |
namespace Macademy\Minerva\Model\ResourceModel\Faq\Grid; | |
use Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult; |
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
Please act as both a personal and business coach. | |
## Who am I? | |
My name is... (continue with extreme detail) | |
## Given my personal mission statement | |
As a _your job goes here_, ... |
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
<?php | |
... | |
/** | |
* Modify a WHERE condition in a collection's select statement. | |
* | |
* @param \Magento\Framework\Data\Collection\AbstractDb $collection The collection to modify. | |
* @param string $searchCondition The condition part to search for in the WHERE clause. | |
* @param string $replaceCondition The condition part to replace with in the WHERE clause. | |
* @return void |
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
<template> | |
<div> | |
<input | |
type="text" | |
placeholder="Search" | |
@input="debounceSearch()" | |
v-model="search" | |
/> | |
</div> | |
</template> |
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
<template> | |
<div> | |
<input | |
type="text" | |
placeholder="Search Your Interest" | |
@input="debounceSearch()" | |
v-model="searchInput" | |
/> | |
</div> | |
</template> |
NewerOlder