Category : amazon-elastic-beanstalk

I am deploying a Laravel application using the Docker platform on AWS Elastic Beanstalk. One of the steps in my Dockerfile is bundling assets using Laravel mix by running npm run production as seen below. # Dockerfile … RUN echo "${ALPINE_MIRROR}/edge/main" >> /etc/apk/repositories && apk add –no-cache nodejs nodejs-npm –repository="http://dl-cdn.alpinelinux.org/alpine/edge/community" && npm install && npm ..

Read more

I’m using Laravel 7 and AWS elastic beanstalk I link the normal domain without any problem and it works but when I link the project with HTTPS I got this error: Mixed Content: The page at ‘https://my-domain.com’ was loaded over HTTPS, but requested an insecure stylesheet ‘http://www.my-domain.com/cp/assets/css/components/portlets/portlet.css’. This request has been blocked; the content must ..

Read more

I’m using AWS Elastic Beanstalk to deploy my Laravel project and deployed the codes this early year. The weird thing is, when I check some of the files were automatically generated as a backup file using the codes from January 2020 even though we’ve updated the codes recently. Below is the picture of the files ..

Read more

I create new Elasticbeanstalk project version PHP 7.3 running on 64bit Amazon Linux I need to install supervisor for running queue work, so I enter to the project dir which is /var/app/current/ by SHH connection then run this command: sudo yum install supervisor I got this: [[email protected]###-##-10-##01 current]$ sudo yum install supervisor Loaded plugins: priorities, ..

Read more

I need to connect to SSH to connect to amazon code-commit so my steps: create new ssh called: asw-code-commit with asw-code-commit.pub upload the ssh to asw user IAM and got my SSH key ID update config in .ssh folder to this: Host git-codecommit.*.amazonaws.com User APKAV66BIP######## IdentityFile ~/.ssh/aws-code-commit save and connect to ssh by this: ssh ..

Read more

Im having a problem with getting queues to work on my prod environment. I am using Elastic Beanstalk to deploy my Laravel Application. To start the queue workers i am using supervisor with the following config: [program:laravel-worker] process_name=%(program_name)s_%(process_num)02d command=php /var/www/html/artisan queue:work database –sleep=3 –tries=2 –daemon autostart=true autorestart=true numprocs=1 redirect_stderr=true stdout_logfile=/var/www/html/storage/logs/laravel.log stopwaitsecs=3600 In my prebuild commands ..

Read more

this is a little bit strange because most of the questions here wanted to force https. While learning AWS elastic beanstalk. I am hosting a laravel site there. Everything is fine, except that none of my javascripts and css files are being loaded. If have referenced them in the blade view as : <script src="{{asset(‘assets/backend/plugins/jquery/jquery.min.js’)}}"></script> ..

Read more

I have a list of IP addresses I want to allow on my server via nginx behind a load balancer. I’m currently migrating from apache to nginx and my previous set up in apache was like this: RewriteBase / RewriteCond %{REMOTE_HOST} !^123.456.123.789 RewriteCond %{REMOTE_HOST} !^456.123.789.123 RewriteCond %{REMOTE_HOST} !^123.567.456.789 RewriteCond %{REMOTE_HOST} !^123.456.789.100 RewriteCond %{REMOTE_HOST} !^127.0.0.1 RewriteCond ..

Read more

I have a Laravel 6 App running onto Elastic Beanstalk environment with a redis (Elastic Cache) base for jobs. How the queue is launched in production ? In fact, I saw .ebextensions commands or Supervisor config, but it’s seems that I have a php artisan queue:work running without doing anything. Source: Laravel Sta..

Read more

I am hosting my laravel website on AWS Server, after I uploaded a new version using Elastic Bean Stalk it worked fine, but after 10 – 12 hours suddenly it showed the below error, at home page and my site was not working. sqlstate hy000 error 2002 connection refused I double checked the .env file ..

Read more

I want to start deploying my laravel app to production. To avoid changing AWS config in the near future, I decided to try to add continuous integration. To do this I’m using elastic beanstalk and pushing the code there using another AWS tool. All this is working perfectly. I put a test message in /public/index.php ..

Read more

I’m trying to use bitbucket pipelines with Elasticbeanstalk to deploy a laravel application, the pipelines should be responsible for building the app and create & upload the zip file, After that the Elasticbeanstalk will apply several statements (read it from .ebextensionsinit.config), basically, init.config is responsible for managing the database. The process is failed at step ..

Read more