This is a simple script along with some useful information to help when setting up a Laravel Sail project that was cloned from source control. I made this because I could not find anywhere that explained how to do this and kept running into problems. The main issue was a problem with database authentication. It turns out that when the Docker volume is created for the database for the first time the password that is in the .env file is used, which I usually created after starting Sail for the first time. Another issue was not having access to the Sail binary to start the containers. This is solved by the script by installing the composer dependencies with a disposable container. If you follow the steps below in order you should not run into any issues. Feel free to leave a comment on this Gist if it could be improved.
This file contains hidden or 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
| # source: https://raymii.org/s/tutorials/Proxmox_VE_One_Public_IP.html | |
| iface eth0 inet manual | |
| iface eth1 inet manual | |
| auto vmbr0 | |
| iface vmbr0 inet static | |
| address 163.172.103.199 | |
| netmask 255.255.255.0 |
This file contains hidden or 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
| Para a inscrição: | |
| 1. {{var customer}} irá imprimir todas as informações do cliente | |
| 2. {{var customer.ID}} | |
| 3. {{var customer.email}} | |
| 4. {{var customer.firstname}} | |
| 5. {{var customer.lastname}} | |
| 6. {{var customer.name}} | |
| 7. {{var customer.password}} | |
| 8. {{var customer.created_in}} |
This file contains hidden or 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 | |
| # warmly.sh | |
| # A wget based, easy, poor man`s cache warmer script | |
| # https://gist.github.com/thomasfr/7926314 | |
| # The MIT License (MIT) | |
| # | |
| # Copyright (c) 2013,2014 Thomas Fritz <fritztho@gmail.com> (http://fritzthomas.com) | |
| # |
This file contains hidden or 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
| ./git-copy.sh aabb37fc243675de1194e38f75a554695ed3c111 7b6efc6a0731d0da7ce0d13b19098db2f7da224b ../uploads |
These set of scripts are for Magento 1. For Magento 2, see this Gist.