Skip to content

Commit b0794f8

Browse files
committed
update typecho
1 parent 5965c6f commit b0794f8

File tree

148 files changed

+35078
-178
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+35078
-178
lines changed

.gitignore

Lines changed: 1 addition & 139 deletions
Original file line numberDiff line numberDiff line change
@@ -1,141 +1,3 @@
1-
# Byte-compiled / optimized / DLL files
2-
__pycache__/
3-
*.py[cod]
4-
*$py.class
5-
6-
# C extensions
7-
*.so
8-
9-
# Distribution / packaging
10-
.Python
11-
develop-eggs/
12-
dist/
13-
downloads/
14-
eggs/
15-
.eggs/
16-
lib/
17-
lib64/
18-
parts/
19-
sdist/
20-
var/
21-
wheels/
22-
pip-wheel-metadata/
23-
share/python-wheels/
24-
*.egg-info/
25-
.installed.cfg
26-
*.egg
27-
MANIFEST
28-
29-
# PyInstaller
30-
# Usually these files are written by a python script from a template
31-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
32-
*.manifest
33-
*.spec
34-
35-
# Installer logs
36-
pip-log.txt
37-
pip-delete-this-directory.txt
38-
39-
# Unit test / coverage reports
40-
htmlcov/
41-
.tox/
42-
.nox/
43-
.coverage
44-
.coverage.*
45-
.cache
46-
nosetests.xml
47-
coverage.xml
48-
*.cover
49-
*.py,cover
50-
.hypothesis/
51-
.pytest_cache/
52-
53-
# Translations
54-
*.mo
55-
*.pot
56-
57-
# Django stuff:
58-
*.log
59-
local_settings.py
60-
db.sqlite3-journal
61-
62-
# Flask stuff:
63-
instance/
64-
.webassets-cache
65-
66-
# Scrapy stuff:
67-
.scrapy
68-
69-
# Sphinx documentation
70-
docs/_build/
71-
72-
# PyBuilder
73-
target/
74-
75-
# Jupyter Notebook
76-
.ipynb_checkpoints
77-
78-
# IPython
79-
profile_default/
80-
ipython_config.py
81-
82-
# pyenv
83-
.python-version
84-
85-
# pipenv
86-
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
87-
# However, in case of collaboration, if having platform-specific dependencies or dependencies
88-
# having no cross-platform support, pipenv may install dependencies that don't work, or not
89-
# install all needed dependencies.
90-
#Pipfile.lock
91-
92-
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
93-
__pypackages__/
94-
95-
# Celery stuff
96-
celerybeat-schedule
97-
celerybeat.pid
98-
99-
# SageMath parsed files
100-
*.sage.py
101-
102-
# Environments
103-
.env
104-
.venv
105-
env/
106-
venv/
107-
ENV/
108-
env.bak/
109-
venv.bak/
110-
111-
# Spyder project settings
112-
.spyderproject
113-
.spyproject
114-
115-
# Rope project settings
116-
.ropeproject
117-
118-
# mkdocs documentation
119-
/site
120-
121-
# mypy
122-
.mypy_cache/
123-
.dmypy.json
124-
dmypy.json
125-
126-
# Pyre type checker
127-
.pyre/
128-
129-
1301
.idea
1312
.DS_Store
132-
c
133-
.s
134-
node_modules
135-
136-
web-framework/php/laravel/src/code/root
137-
138-
!web-framework/php/wordpress/src/code/root/*
139-
!web-framework/php/wordpress/src/code/root/usr/*
140-
!web-framework/php/zblog/src/code/root/*
141-
!web-framework/php/zblog/src/code/root/usr/*
3+
.s

web-framework/php/typecho/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Type: Application
22
Name: start-typecho
33
Provider:
44
- 阿里云
5-
Version: 0.1.1
5+
Version: 0.1.2
66
Description: 快速部署一个 Typecho 框架到阿里云函数计算
77
HomePage: https://github.com/devsapp/start-web-framework
88
Tags:

web-framework/php/typecho/src/code/.fcignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

web-framework/php/typecho/src/code/bootstrap

Lines changed: 0 additions & 31 deletions
This file was deleted.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
set -e
3+
4+
echo "Initilizing..."
5+
whoami
6+
7+
cp /mnt/auto/typecho/typecho.conf /etc/nginx/sites-enabled/
8+
chmod 777 -R /mnt/auto
9+
10+
echo "start nginx"
11+
nohup nginx -c /etc/nginx/nginx.conf &
12+
13+
echo "start php-fpm"
14+
php-fpm -c /usr/local/etc/php/php.ini-production -y /usr/local/etc/php-fpm.conf
15+
16+
while true
17+
do
18+
nginx_server=`ps aux | grep nginx | grep -v grep`
19+
if [ ! "$nginx_server" ]; then
20+
echo "restart nginx ..."
21+
nginx -c /etc/nginx/nginx.conf
22+
fi
23+
php_fpm_server=`ps aux | grep php-fpm | grep -v grep`
24+
if [ ! "$php_fpm_server" ]; then
25+
echo "restart php-fpm ..."
26+
nohup php-fpm -c /usr/local/etc/php/php.ini-production -y /usr/local/etc/php-fpm.conf &
27+
fi
28+
done
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
set -e
3+
4+
echo "Initilizing..."
5+
whoami
6+
7+
cp /mnt/auto/typecho/typecho.conf /etc/nginx/sites-enabled/
8+
chmod 777 -R /mnt/auto
9+
10+
echo "start nginx"
11+
nohup nginx -c /etc/nginx/nginx.conf &
12+
13+
echo "start php-fpm"
14+
php-fpm -c /usr/local/etc/php/php.ini-production -y /usr/local/etc/php-fpm.conf
15+
16+
while true
17+
do
18+
nginx_server=`ps aux | grep nginx | grep -v grep`
19+
if [ ! "$nginx_server" ]; then
20+
echo "restart nginx ..."
21+
nginx -c /etc/nginx/nginx.conf
22+
fi
23+
php_fpm_server=`ps aux | grep php-fpm | grep -v grep`
24+
if [ ! "$php_fpm_server" ]; then
25+
echo "restart php-fpm ..."
26+
nohup php-fpm -c /usr/local/etc/php/php.ini-production -y /usr/local/etc/php-fpm.conf &
27+
fi
28+
done
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
server {
2+
listen 8080;
3+
root /mnt/auto/typecho;
4+
index index.php index.html index.htm;
5+
# server_name localhost;
6+
server_name *.fc.devsapp.cn;
7+
8+
client_max_body_size 100M;
9+
10+
location / {
11+
try_files $uri $uri/ /index.php?q=$uri&$args;
12+
}
13+
14+
location ~ \.php$ {
15+
include snippets/fastcgi-php.conf;
16+
fastcgi_pass 127.0.0.1:9000;
17+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
18+
}
19+
}

0 commit comments

Comments
 (0)