-
-
Notifications
You must be signed in to change notification settings - Fork 549
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #253 from avored/dev
2.9.5.7
- Loading branch information
Showing
16 changed files
with
499 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
APP_NAME=AvoRed | ||
APP_ENV=false | ||
APP_ENV=development | ||
APP_KEY= | ||
APP_DEBUG=true | ||
APP_LOG_LEVEL=debug | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,41 @@ | ||
FROM indpurvesh/laravel-ecommerce | ||
FROM ubuntu:18.04 | ||
MAINTAINER purvesh <[email protected]> | ||
|
||
|
||
RUN apt-get update && apt-get install -y \ | ||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ | ||
apache2-bin \ | ||
libapache2-mod-php5 \ | ||
php5-curl \ | ||
php5-ldap \ | ||
php5-sqlite \ | ||
php5-mysql \ | ||
php5-mcrypt \ | ||
php5-gd \ | ||
patch \ | ||
libapache2-mod-php \ | ||
php-ctype \ | ||
php-curl \ | ||
php-gd \ | ||
php-json \ | ||
php-ldap \ | ||
php-mbstring \ | ||
php-mysql \ | ||
php-sqlite3 \ | ||
php-tokenizer \ | ||
php-xml \ | ||
curl \ | ||
nano \ | ||
vim \ | ||
git \ | ||
mysql-client | ||
|
||
|
||
|
||
RUN rm /etc/apache2/sites-available/000-default.conf | ||
|
||
ADD 000-default.conf /etc/apache2/sites-available/ | ||
|
||
RUN service apache2 start | ||
mysql-client \ | ||
nano \ | ||
patch \ | ||
unzip \ | ||
vim | ||
|
||
RUN cd /tmp;curl -sS https://getcomposer.org/installer | php;mv /tmp/composer.phar /usr/local/bin/composer | ||
|
||
Run rm -rf /var/www/laravel | ||
RUN rm -rf /var/www/laravel | ||
|
||
RUN composer create-project avored/laravel-ecommerce /var/www/laravel | ||
|
||
RUN /bin/chown www-data:www-data -R /var/www/laravel/storage | ||
|
||
ADD 000-default.conf /etc/apache2/sites-available/ | ||
|
||
RUN a2enmod rewrite | ||
|
||
RUN service apache2 start | ||
|
||
EXPOSE 80 | ||
|
||
CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
* A list of environment aliases mapped to the actual environment configuration. | ||
*/ | ||
'environment_aliases' => [ | ||
'prod' => 'production', | ||
'live' => 'production', | ||
'local' => 'development', | ||
], | ||
|
||
/* | ||
* Common checks that will be performed on all environments. | ||
*/ | ||
'checks' => [ | ||
\BeyondCode\SelfDiagnosis\Checks\AppKeyIsSet::class, | ||
\BeyondCode\SelfDiagnosis\Checks\CorrectPhpVersionIsInstalled::class, | ||
\BeyondCode\SelfDiagnosis\Checks\DatabaseCanBeAccessed::class => [ | ||
'default_connection' => true, | ||
'connections' => [], | ||
], | ||
\BeyondCode\SelfDiagnosis\Checks\DirectoriesHaveCorrectPermissions::class => [ | ||
'directories' => [ | ||
storage_path(), | ||
base_path('bootstrap/cache'), | ||
], | ||
], | ||
\BeyondCode\SelfDiagnosis\Checks\EnvFileExists::class, | ||
\BeyondCode\SelfDiagnosis\Checks\ExampleEnvironmentVariablesAreSet::class, | ||
\BeyondCode\SelfDiagnosis\Checks\LocalesAreInstalled::class => [ | ||
'required_locales' => [ | ||
'en_US' | ||
], | ||
], | ||
\BeyondCode\SelfDiagnosis\Checks\MaintenanceModeNotEnabled::class, | ||
//\BeyondCode\SelfDiagnosis\Checks\MigrationsAreUpToDate::class, | ||
\BeyondCode\SelfDiagnosis\Checks\PhpExtensionsAreInstalled::class => [ | ||
'extensions' => [ | ||
'openssl', | ||
'PDO', | ||
'mbstring', | ||
'tokenizer', | ||
'xml', | ||
'ctype', | ||
'json', | ||
], | ||
'include_composer_extensions' => true, | ||
], | ||
//\BeyondCode\SelfDiagnosis\Checks\RedisCanBeAccessed::class => [ | ||
// 'default_connection' => true, | ||
// 'connections' => [], | ||
//], | ||
\BeyondCode\SelfDiagnosis\Checks\StorageDirectoryIsLinked::class, | ||
], | ||
|
||
/* | ||
* Environment specific checks that will only be performed for the corresponding environment. | ||
*/ | ||
'environment_checks' => [ | ||
'development' => [ | ||
\BeyondCode\SelfDiagnosis\Checks\ComposerWithDevDependenciesIsUpToDate::class, | ||
\BeyondCode\SelfDiagnosis\Checks\ConfigurationIsNotCached::class, | ||
\BeyondCode\SelfDiagnosis\Checks\RoutesAreNotCached::class, | ||
\BeyondCode\SelfDiagnosis\Checks\ExampleEnvironmentVariablesAreUpToDate::class, | ||
], | ||
'production' => [ | ||
\BeyondCode\SelfDiagnosis\Checks\ComposerWithoutDevDependenciesIsUpToDate::class, | ||
\BeyondCode\SelfDiagnosis\Checks\ConfigurationIsCached::class, | ||
\BeyondCode\SelfDiagnosis\Checks\DebugModeIsNotEnabled::class, | ||
\BeyondCode\SelfDiagnosis\Checks\PhpExtensionsAreDisabled::class => [ | ||
'extensions' => [ | ||
'xdebug', | ||
], | ||
], | ||
\BeyondCode\SelfDiagnosis\Checks\RoutesAreCached::class, | ||
//\BeyondCode\SelfDiagnosis\Checks\ServersArePingable::class => [ | ||
// 'servers' => [ | ||
// 'www.google.com', | ||
// ['host' => 'www.google.com', 'port' => 8080], | ||
// '8.8.8.8', | ||
// ['host' => '8.8.8.8', 'port' => 8080, 'timeout' => 5], | ||
// ], | ||
//], | ||
//\BeyondCode\SelfDiagnosis\Checks\SupervisorProgramsAreRunning::class => [ | ||
// 'programs' => [ | ||
// 'horizon', | ||
// ], | ||
// 'restarted_within' => 300, | ||
//], | ||
], | ||
], | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
.badge { | ||
font-weight:400; | ||
padding:4px 8px; | ||
text-transform:uppercase; | ||
border:1px solid; | ||
} | ||
|
||
.badge .badge-icon { | ||
padding:0.4em 0.55em; | ||
} | ||
.badge .badge-icon i { | ||
font-size:0.8em; | ||
} | ||
.badge .badge-default { | ||
background:transparent; | ||
border-color:#9A9A9A; | ||
color:#9A9A9A; | ||
} | ||
.badge .badge-default .fill { | ||
background:#9A9A9A; | ||
color:#fff; | ||
} | ||
.badge .badge-primary { | ||
background:transparent; | ||
border-color:#49c5b6; | ||
color:#49c5b6; | ||
} | ||
.badge .badge-primary.fill { | ||
background:#49c5b6; | ||
color:#fff; | ||
} | ||
.badge .badge-info { | ||
background:transparent; | ||
border-color:#3C89DA; | ||
color:#3C89DA; | ||
} | ||
.badge .badge-info.fill { | ||
background:#3C89DA; | ||
color:#fff; | ||
} | ||
.badge .badge-success { | ||
background:transparent; | ||
border-color:#22af46; | ||
color:#22af46; | ||
} | ||
.badge .badge-success.fill { | ||
background:#22af46; | ||
color:#fff; | ||
} | ||
.badge .badge-warning { | ||
background:transparent; | ||
border-color:#f3ad06; | ||
color:#f3ad06; | ||
} | ||
.badge .badge-warning .fill { | ||
background:#f3ad06; | ||
color:#fff; | ||
} | ||
.badge .badge-danger { | ||
background:transparent; | ||
border-color:#de4848; | ||
color:#de4848; | ||
} | ||
.badge .badge-danger .fill { | ||
background:#de4848; | ||
color:#fff; | ||
} | ||
.badge .round { | ||
-webkit-border-radius:30px; | ||
-moz-border-radius:30px; | ||
border-radius:30px | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.