Category : bash

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 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 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

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