-
Notifications
You must be signed in to change notification settings - Fork 197
/
phploy.bat
26 lines (22 loc) · 1.19 KB
/
phploy.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
:: To run phploy globally (from any folder), either add this folder to your system's PATH
:: or copy and edit this BAT file somewhere into your system's PATH, eg. C:\WINDOWS
::
:: Note you will need PHP.exe somewhere on your system also, and if it's not also
:: in your PATH variable, you will need to specify the full path to it below
::
:: If you're not sure how to edit your system's path variable:
:: - Press WIN+PAUSE to open the System Control Panel screen,
:: - Choose "Advanced System Settings"
:: - Click "Environment Variables"
:: - Find "Path" in the bottom section, and add the necessary folder(s) to the list,
:: separated by semi-colons
:: eg. C:\Windows;C:\Windows\System32;C:\path\to\php.exe;C:\path\to\phploy
@ECHO OFF
:: Set the console code page to use UTF-8
chcp 65001 > NUL
:: error_reporting integer value of E_ALL & ~E_NOTICE
for /f %%i in ('php -r "echo E_ALL & ~E_NOTICE;"') do set ER=%%i
:: %~dp0 is the shell variable for the script directory, equivalent to the PHP "__DIR__"
:: magic constant. You can replace it with your phploy installation directory if you
:: moved this bat file from it.
php -d error_reporting=%ER% "%~dp0\dist\phploy.phar" %*