加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
env.php 1.85 KB
一键复制 编辑 原始数据 按行查看 历史
Eryx 提交于 2013-10-14 00:20 . [NEW] 支持 NodeJS 运行环境
<?php
class lesscreator_env
{
public static function GroupByAppList()
{
return array(
'50' => 'Business',
'51' => 'Collaboration',
'52' => 'Productivity',
'53' => 'Developer Tools'
);
}
public static function RuntimesList()
{
return array(
'nginx' => array(
'title' => 'WebServer (nginx)',
),
'php' => array(
'title' => 'PHP',
),
'go' => array(
'title' => 'Go',
),
'nodejs' => array(
'title' => 'NodeJS',
),
'python' => array(
'title' => 'Python',
),
'java' => array(
'title' => 'Java',
),
);
}
public static function GroupByDevList()
{
return array(
'60' => 'Web Frontend Library, Framework',
'61' => 'Web Backend Library, Framework',
'70' => 'System Library',
'71' => 'System Server, Service',
);
}
public static function ProjInfoDef($proj)
{
return array(
'projid' => "$proj",
'name' => "$proj",
'summary' => '',
'version' => '0.0.1',
'depends' => '',
'release' => '1',
'arch' => 'all',
'runtimes' => array(),
'props_app' => array(),
'props_dev' => array(),
);
}
public static function NginxConfTypes()
{
return array(
'std' => 'Standard configuration',
'static' => 'Pure static files',
'phpmix' => 'php-fpm (PHP FastCGI Process Manager) and static files',
'custom' => 'Custom Configuration',
);
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化