#### Category : bash

Using Windows. I want to write and call a .sh script which will contain: ssh [email protected] cd /var/www/api.name.com php artisan cache:clear php artisan responsecache:clear php artisan config:cache At the moment it’ll just login but not navigate to the directory or run the php artisan parts. I will then schedule this to run with windows task ..

Read more

I have installed composer on WSL. I will show the commands that I have used and the issues that I am now having. composer global require "laravel/installer" –prefer-dist nano ~/.bashrc export PATH=$HOME/.composer/vendor/bin:$PATH source ~/.bashrc I got error: bash: /home/devina/.config/composer/vendor/bin: Is a directory When i cd to /home/devina/.config/composer/vendor/bin i got laravel how can i get laravel ..

Read more

please excuse the weird question, our infrastructure/challenges are interesting. Our build server is in a different VPC to our web servers, which are private. So build > web server isn’t possible. I’m working locally with two VirtualBox VMs for proof of concept, no issues there. All works ok locally, using the two VMs. Our deployments ..

Read more

I’ve wrote this into the terminal just like most tutorials do: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" and then the terminal returns this: Failed to connect to raw.githubusercontent.com port 443: Connection refused and then I tried to do this: export https_proxy=http://127.0.0.1:8090 http_proxy=http://127.0.0.1:8090 all_proxy=socks5://127.0.0.1:809 the last error didn’t show up again but the terminal returns this:curl: curl: .. Read more I am trying to get Laravel going on Windows 10. In their docs they first tell to install Docker together with wsl2 (linux bash terminal for windows) and then run curl -s https://laravel.build/example-app | bash in the linux terminal. So I did but the terminal shows: -sh: curl: not found I’m not very familiar with .. Read more I made a github gist to scaffold a Laravel Jetstream with Storybook from the oficial Laravel installer but the last command is not running. Here is the code: curl -s https://laravel.build/example-app | bash cd example-app ./vendor/bin/sail up -d; docker-compose exec -T -u sail laravel.test bash -c " composer require laravel/jetstream && php artisan jetstream:install inertia .. Read more I am attempting to insert a new line so the dynamic callback can be added however I’m not having much success; the curl isn’t on a brand new line which breaks the script. It is instead on the last line alongside a mkdir. File::put(storage_path(‘app/scripts/’.$rand.’.script’), $this->deployment->script); File::append(storage_path(‘app/scripts/’.$rand.’.script’), ‘ n’); // Doesn’t break onto a new line. ..

Read more

The error I would get would be something like this. Basically all forms of dyld: Library not loaded ➜ php -v dyld: Library not loaded: /usr/local/opt/openldap/lib/libldap-2.4.2.dylib Referenced from: /usr/local/bin/php Reason: image not found [1] 62677 abort php -v ~/Projects ➜ valet use [email protected] dyld: Library not loaded: /usr/local/opt/openldap/lib/libldap-2.4.2.dylib Referenced from: /usr/local/bin/php Reason: image not found ..

Read more

I’m encountering some weirdness in my project. I don’t know if it’s because I have default seed/placeholder data and images or if my project permissions are messed up, but I lean heavily on the later as i’m unable to upload photos even though the path it’s looking to exists with the directory and all the ..

Read more

I am working on a laravel project and literally, after any command in the git bash file explorer randomly opens few times. If I run npm run dev, npm install, PHP artisan something… Sourc..

Read more

I accidentally cloned my Laravel 8 project as root, not Ex. john. ┌──[[email protected]]──[/home/john/app] └── L total 26440 -rw-r–r– 1 root root 63 Apr 18 20:03 README.md -rw-r–r– 1 root root 0 Apr 18 20:03 ‘Icon’$’r’ -rw-r–r– 1 root root 174 Apr 18 20:03 .styleci.yml -rw-r–r– 1 root root 431 Apr 18 20:03 .gitignore -rw-r–r– 1 .. Read more Generally speaking when wanting to see the routes locally I’d use php artisan route:list That worked fine when I wasn’t dealing with files that use environment variables which are declared differently between my local environment and the server. Now I get PHP Notice: Undefined index: VARIABLE_NAME in ….php on line 12 Notice: Undefined index: VARIABLE_NAME .. Read more I’m trying to wipe sensitive history commands daily off my server via Laravel scheduler ⚡️ app2020 php artisan schedule:run ErrorException Undefined variable: h at app/Console/Kernel.php:44 40| 41| 42| 43| //EXEC > 44|$schedule->exec(`for h in $(history | grep mysql | awk ‘{print$1-N}’ | tac) ; do history -d $h ; done; history -d$(history ..

Read more

I was setting up a new laravel project via composer and saw these downdowndownloading lines in command prompt. enter image description here Can Anyone Explain me what does it mean? or of it doesn’t mean anything other than the word downloading. Sourc..

Read more

Sorry if it seems like a nooby thing, but I am nooby at this composer/cmd thing. I keep getting the same error while trying to install Laravel installer. The composer resists to install "symfony/console", it downloads it, but cannot load it. Any ideas why? Just today it was working fine, few hours in I tried ..

Read more

Unix Bash Script I have been assigned my colleague’s task to write a bash script which would copy the contents from one Debian 10 server [Non Production] to another Debian 10 server [Production]. The request that has been shared is : PART A #!/bin/bash #SYSTEM_VARIABLES INSTALLATION_DIR=/var/www/kapp GIT_DIR= SSL_CERT= SSL_KEY= NGINX_CONF=/etc/nignx/sites-available/kapp.zimpa.com In reference to the above, ..

Read more