-
Notifications
You must be signed in to change notification settings - Fork 0
Quickly Start
axios edited this page Dec 14, 2020
·
3 revisions
# download from github
git clone https://github.com/AxiosCros/tpr-app.git
# install libraries
cd tpr-app/ && composer install
# run cli
php tpr
composer global require axios/tpr
# set `~/.composer/vendor/bin` or `~/.config/composer/vendor/bin` to your PATH environment variable
tpr-cli init <app-name>
This web server is designed to aid application development. Not recommended for use in the production environment.
start by follow command
php -S localhost:8088 -t public/
server {
listen 80;
server_name www.test.com;
root "/path/to/tpr-app/public/";
location / {
index index.html index.htm index.php;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}
#autoindex off;
}
location ~ \.php(.*)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi_params;
}
}
Anything unclear or inaccurate? Please let me know at axioscros@aliyun.com