- Little app to check redirect old page/url to new page/url
Exercism.io
I enjoy doing some coding challenges/tasks. See my profile.
Run a PHP application on AWS Fargate
Home Page: https://www.codedge.de/posts/20200419-run-php-application-on-aws-fargate/
Exercism.io
I enjoy doing some coding challenges/tasks. See my profile.
First of all this is a great job. Thank you to sharing with us - special beginners.
However, running the Dockerfile on Fargate task & locally
docker run -it -p 80:80 <container>
It seams docker-entrypoint.sh is not executed and, following that, I've got 502 bad gateway from nginx as php-fpm has not started.
Thanks
Thank you very much for sharing this content, it's helping me a lot.
So I got an issue about the communication between nginx and php-fpm containers. I got this error: "host not found in upstream "php-fpm:9000""
The Fargate doesn't allow use hostname parameter in the task definition. How did you handled with this communication?
Thank you again,
I cloned the project, copied Laravel files in to it (fresh install) and ran:
docker-compose up -d
When I visit http://localhost I get a 502 Bad Gateway error message in the browser.
The docker log command docker logs aws-fargate-with-php_nginx_1
gives the following output:
192.168.80.1 - - [09/Jun/2020:07:43:31 +0000] "GET / HTTP/1.1" 502 158 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0" "-"
2020/06/09 07:43:31 [error] 11#11: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.80.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost"
Any ideas?
This is fantastic, thanks for sharing.
Is there much involved in removing everything "Laravel" and just having a simplified version with vanilla php?
composer global require hirak/prestissimo:^0.3 --prefer-dist --no-progress --no-suggest --classmap-authoritative
Changed current directory to /root/.composer
You are using the deprecated option "--no-suggest". It has no effect and will break in Composer 3.
[RuntimeException]
No composer.json present in the current directory, this may be the cause of the following exception.
[InvalidArgumentException]
Package hirak/prestissimo at version ^0.3 has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version
What is your workflow when working locally with this. I made a change to the welcome.blade.php template but had to rebuild the containers to update the page. Is there something I am missing for 'live' local development?
I'm getting the following error when trying to run locally "docker-compose up" any ideas?
Running on a mac:
+ pecl install apcu-5.1.17
No releases available for package "pecl.php.net/apcu"
install failed
ERROR: Service 'php-fpm' failed to build : The command '/bin/sh -c set -eux;
apk add --no-cache --virtual .build-deps
$PHPIZE_DEPS coreutils freetype-dev icu-dev libjpeg-turbo-dev libtool libwebp-dev libzip-dev mariadb-dev ;
docker-php-ext-configure gd --with-jpeg=/usr/include/ --with-webp=/usr/include --with-freetype=/usr/include/;
docker-php-ext-install -j$(nproc) bcmath exif gd intl pdo_mysql zip ;
pecl install apcu-${APCU_VERSION} ;
pecl clear-cache;
docker-php-ext-enable apcu opcache ;
runDeps="$(scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )";
apk add --no-cache --virtual .laravelapp-phpexts-rundeps $runDeps;
apk del .build-deps' returned a non-zero code: 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.