Skip to content
Permalink
Browse files

Closes #124 - adds missing craft files

  • Loading branch information...
codewithkyle committed Feb 27, 2019
1 parent a868f78 commit 1186256684aa1a409b50921b531b3328fc47e957
Showing with 38 additions and 2 deletions.
  1. +0 −2 .gitignore
  2. +23 −0 craft
  3. +15 −0 craft.bat
@@ -11,8 +11,6 @@
.env
license.key
/.idea
/craft
/craft.bat
/storage/*
!/storage/.gitkeep
/public/uploads/*
23 craft
@@ -0,0 +1,23 @@
#!/usr/bin/env php
<?php
/**
* Craft console bootstrap file
*/
// Set path constants
define('CRAFT_BASE_PATH', __DIR__);
define('CRAFT_VENDOR_PATH', CRAFT_BASE_PATH.'/vendor');
// Load Composer's autoloader
require_once CRAFT_VENDOR_PATH.'/autoload.php';
// Load dotenv?
if (file_exists(CRAFT_BASE_PATH.'/.env')) {
(new Dotenv\Dotenv(CRAFT_BASE_PATH))->load();
}
// Load and run Craft
define('CRAFT_ENVIRONMENT', getenv('ENVIRONMENT') ?: 'production');
$app = require CRAFT_VENDOR_PATH.'/craftcms/cms/bootstrap/console.php';
$exitCode = $app->run();
exit($exitCode);
@@ -0,0 +1,15 @@
@echo off

rem -------------------------------------------------------------
rem Craft command line bootstrap script for Windows
rem -------------------------------------------------------------

@setlocal

set CRAFT_PATH=%~dp0

if "%PHP_COMMAND%" == "" set PHP_COMMAND=php.exe

"%PHP_COMMAND%" "%CRAFT_PATH%craft" %*

@endlocal

0 comments on commit 1186256

Please sign in to comment.
You can’t perform that action at this time.