Compare commits
1 Commits
11976de6b1
...
main
Author | SHA1 | Date | |
---|---|---|---|
786b75d493 |
@@ -41,7 +41,7 @@ Twig 是一个灵活、快速、安全的 PHP 模板语言。它将模板编译
|
|||||||
建议通过 Composer 安装 Twig:
|
建议通过 Composer 安装 Twig:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -d -p 8080:80 -v /root/wwwtest/:/app/public/ --name lnmp74 fbraz3/lnmp:7.4
|
docker run -d -p 8080:80 -v /root/wwwtest/:/app/public/ --name lnmp74 registry.cn-hangzhou.aliyuncs.com/eagleslab/service:lnmp74
|
||||||
docker exec -it lnmp74 bash
|
docker exec -it lnmp74 bash
|
||||||
[root@c356af4b5b68 /]# cd /app/public
|
[root@c356af4b5b68 /]# cd /app/public
|
||||||
[root@c356af4b5b68 www]# composer require "twig/twig:^3.0"
|
[root@c356af4b5b68 www]# composer require "twig/twig:^3.0"
|
||||||
|
27
push.bat
27
push.bat
@@ -1,27 +0,0 @@
|
|||||||
@echo off
|
|
||||||
setlocal enabledelayedexpansion
|
|
||||||
|
|
||||||
rem 获取当前日期和时间
|
|
||||||
for /f "tokens=1-4 delims=/-. " %%i in ("%date%") do (
|
|
||||||
set yyyy=%%i
|
|
||||||
set mm=%%j
|
|
||||||
set dd=%%k
|
|
||||||
)
|
|
||||||
|
|
||||||
set hh=%time:~0,2%
|
|
||||||
set nn=%time:~3,2%
|
|
||||||
set ss=%time:~6,2%
|
|
||||||
|
|
||||||
rem 去掉小时的空格
|
|
||||||
if "%hh:~0,1%"==" " set hh=0%hh:~1,1%
|
|
||||||
|
|
||||||
set commitmsg=%yyyy%-%mm%-%dd%_%hh%-%nn%-%ss%
|
|
||||||
|
|
||||||
git config --global core.autocrlf input
|
|
||||||
|
|
||||||
git add .
|
|
||||||
git rm --cached push.bat
|
|
||||||
git commit -m "%commitmsg%"
|
|
||||||
git push -u origin main
|
|
||||||
|
|
||||||
endlocal
|
|
Reference in New Issue
Block a user