I’m wondering what the best approach is to run a application on multiple Linux servers. Using EC2 AWS linux on different zones. The web application is the same on each zone, using a different database for each application which is defined in a single config file. At the moment when I update the application I have to manually update every
Tag: git
Why does host key verification fail? Symfony and BitBucket Deployment with Easy-Deploy-Bundle
I am trying to deploy my Symfony 5 application via BitBucket Pipelines and easy-corp/easy-deploy-bundle to my server. I’ve followed the instructions on https://support.atlassian.com/bitbucket-cloud/…
Class ‘MagentoSetupApplication’ not found, after executing “git reset –hard”
I executed git reset –hard, but now I get: I executed composer update in hope that this fixes it, but it doesnt. How can I fix? Answer It turned out that git reset –hard destroyed my setup folder for unknown reasons and not even git pull fixed it. So I had to copy the folder from another project. Now it
Cannot connect database to heroku with PHP
I am not able to connect my database(.sql) file to heroku. I am using PHP for connecting database and frontend of webpage. The heroku page is showing the static site and for login page, it’s showing error while registering new user. It’s working perfectly fine when I run it on xampp server. On clicking submit button of a form on
How to successfully migrate or transfer a laravel codebase to a new laravel scaffold [closed]
I want to ask if how do you successfully backup a laravel project / move it’s codebase to a new laravel codebase, because my laravel project right now won’t boot up the built in artisan server, it …
Gitlab webhooks not working due to shell script permission
Using laravel 5.6. I’m trying to set up a webhook on gitlab, to make a git pull on push events. I’ve created a post route, added controller and method, that launches a shell script: Shell script itself contains just a one line: But in gitlab’s request details, i see an error after a push: I already chmod 777 deploy.sh, but
PhpStorm external tools before commit
I have an External Tools entry php-cs-fixer and I want run it before commit. I found only after, but why after? I need before. I want after work with file, commit it and don’t worry about code style, I want to know that my PhpStorm run external tools php-cs-fixer before committed file. How to add run external tools before commit
How to add private github repository as Composer dependency
I have the following in my Laravel 5.1 projects composer.json to add a public github repository as a dependency. … “repositories”: [ { “type”: “package”, “package”: { “name”: “…
How to open DB connection in Openshift? [closed]
This is my dbcon file in PHP. Basically, I need to connect my PHP application with openshift MySQL DB. Here’s what I did. <?php // Database Connection Setting $dbhost = "127.0.0.1"; // …
Git WebHook will not pull (PHP)
I have a PHP file, hook.php, that looks like this: <?php `cd .. && git pull`; The file is located in /var/www/oliverash.me/site/. However, the git repository that needs to be pulled is /var/www/oliverash.me/. ./site is the folder Apache looks to as the document root. When I run the file in my browser, it does not seem to be pulling the