Regular visits, with no daily access peaks.
-
API - AWS EC2 (t2.micro): 0,0116 USD/h
- Production Environment + Staging Env. = 8,63 USD/month * 2 = 17,26 USD/month
-
Front-end/media/deployments - AWS S3:
# Create environment variable for correct distribution | |
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" && \ | |
# Add the Cloud SDK distribution URI as a package source | |
echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && \ | |
# Import the Google Cloud Platform public key | |
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - && \ | |
# Update the package list and install the Cloud SDK |
sudo add-apt-repository -y ppa:ondrej/php && \ | |
sudo apt update && \ | |
sudo apt install -y curl php7.2 php7.2-common php7.2-cli php7.2-fpm \ | |
php7.2-enchant php7.2-mbstring php7.2-snmp php7.2-bcmath \ | |
php7.2-fpm php7.2-mysql php7.2-soap php7.2-bz2 php7.2-gd php7.2-xml \ | |
php7.2-odbc php7.2-sqlite3 php7.2-cgi php7.2-gmp php7.2-ext-zip \ | |
php7.2-opcache php7.2-sybase php7.2-cli php7.2-imap php7.2-pgsql \ | |
php7.2-tidy php7.2-common php7.2-interbase php7.2-phpdbg php7.2-xmlphp7.2-curl \ | |
php7.2-intl php7.2-pspell php7.2-xmlrpc php7.2-dba php7.2-json \ | |
php7.2-readline php7.2-xsl php7.2-dev php7.2-ldap php7.2-recode php7.2-zip && \ |
runtime: php72 | |
env_variables: | |
APP_KEY: <Insert app key here> | |
APP_STORAGE: /tmp | |
VIEW_COMPILED_PATH: /tmp | |
SESSION_DRIVER: cookie |
<?php | |
/* | |
|-------------------------------------------------------------------------- | |
| Create The Application | |
|-------------------------------------------------------------------------- | |
| | |
| The first thing we will do is create a new Laravel application instance | |
| which serves as the "glue" for all the components of Laravel, and is | |
| the IoC container for the system binding all of the various parts. |
<?php | |
// ... | |
Route::get('name={name}', function ($name) { | |
return "{$name} say 'hello'!"; | |
}); | |
Route::get('phpinfo', function (){ | |
phpinfo(); | |
}); |
{ | |
"folders": [ | |
{ | |
"path": "." | |
} | |
], | |
"extensions": { | |
"recommendations": [ | |
"dracula-theme.theme-dracula", | |
"ritwickdey.liveserver", |
<?php | |
/** | |
* Laravel - A PHP Framework For Web Artisans | |
* | |
* @package Laravel | |
* @author Taylor Otwell <[email protected]> | |
*/ | |
$uri = urldecode( |
<?php | |
/* | |
* This file is part of the Symfony package. | |
* | |
* (c) Fabien Potencier <[email protected]> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ |
<?php | |
use Illuminate\Contracts\Http\Kernel; | |
use Illuminate\Http\Request; | |
define('LARAVEL_START', microtime(true)); | |
/* | |
|-------------------------------------------------------------------------- | |
| Check If Application Is Under Maintenance |