小编Mut*_*. V的帖子

如何在Windows上安装Phabricator?

我尝试使用WAMP Apache Server在Windows 8上安装Phabricator.

根据以下链接,我安装了Arcanist并通过评论确认

arc -v 
Run Code Online (Sandbox Code Playgroud)

https://secure.phabricator.com/book/phabricator/article/arcanist_windows/

接下来我尝试访问我的localhost上的Phabricator页面,我只能看到.sh for Linux,Noting for windows.如果您在Windows上成功安装,请指导.

http://localhost/phabricator/scripts/install/
Run Code Online (Sandbox Code Playgroud)

php phabricator

6
推荐指数
1
解决办法
6861
查看次数

Jenkins pdepend插件错误

我在Windows中使用Jenkins,当我构建项目时,我在Ant任务pdepend上收到以下错误.

pdepend:
     [exec] Can't find the custom report class: --jdepend-chart=C:\Program Files\Jenkins\workspace\Tracking/build/pdepend/dependencies.svg
     [exec] Result: 1
Run Code Online (Sandbox Code Playgroud)

PMD工作正常,没有错误,并在Project Dashboard页面中获取图表.

php ant jenkins jenkins-plugins jenkins-php

5
推荐指数
1
解决办法
338
查看次数

离子 - 跨源请求被阻止的问题

我使用Yeoman生成器设置了Ionic开发环境(https://github.com/diegonetto/generator-ionic).一切都运作良好.

问题在于Sever方面的请求,我收到了Cross-Origin Request Blocked错误.

我在.htaccess文件和AngularJS app.js中添加以下链接,仍然得到相同的错误

Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Headers: Authorization
Run Code Online (Sandbox Code Playgroud)

AngularJS Provider

$httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8';
$httpProvider.defaults.withCredentials = true;
Run Code Online (Sandbox Code Playgroud)

我收到的错误消息是

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at 
http://192.168.1.18/tracker/user/login. 
This can be fixed by moving the resource to the same domain or enabling CORS.
Run Code Online (Sandbox Code Playgroud)

请求和响应标头的屏幕

请求和响应标头的屏幕

请指导我为启用CORS而需要更改的任何配置.我们的服务器端框架是Zend 1.x.

.htaccess cors angularjs ionic-framework

4
推荐指数
1
解决办法
1万
查看次数

PHPMD @ bin_dir @错误

我尝试使用下面的注释在Windows计算机上安装PHPMD

$ git clone git://github.com/phpmd/phpmd.git
cd phpmd
$ git submodule update --init
$ php composer.phar install
Run Code Online (Sandbox Code Playgroud)

安装PHPMD后,当我尝试在Windows命令提示符下使用PHPMD时,我收到以下错误

Could not open input file: @bin_dir@\phpmd
Run Code Online (Sandbox Code Playgroud)

任何人都可以帮我解决这个问题

php jenkins phpmd jenkins-cli

2
推荐指数
1
解决办法
981
查看次数

创建触发器时 MySQL 语法错误

这是我的触发器,我收到 MySQL 语法错误。我想减少 sms_index表sms_count值的余额。

 CREATE TRIGGER sms_log_update AFTER UPDATE ON sms_index
  FOR EACH ROW
  BEGIN
    IF NEW.approved_status = '1' THEN
      UPDATE  sms_package SET  balance =  (balance - OLD.sms_count) WHERE  group_id = OLD.ins_group_id;
    END IF;
  END;
Run Code Online (Sandbox Code Playgroud)

错误信息:

 #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 5 
Run Code Online (Sandbox Code Playgroud)

mysql database triggers mysql-error-1064

2
推荐指数
1
解决办法
811
查看次数

需要多租户数据库架构的建议吗?

我们正在使用SaaS模型中的PHP和MySQL开发项目,每个租户都可以使用我们的Module Creator和Form Builder为自己创建模块.

当他们动态创建新模块时,我们正在为特定租户创建新表.因此每个租户都有不同的架构.

我建议使用每个租户的每个数据库,但我的经理希望将所有租户保留在单个数据库中,因为我们已经继续升级我们的项目.

现在我的想法是为每个租户提供2个DB; 一个是Master DB,它对所有租户都是通用的,下一个是辅助DB,它是为每个人创建的表.

php mysql database database-design database-schema

1
推荐指数
1
解决办法
1802
查看次数