Prestashop子域开发服务器

时间:2016-03-29 08:31:23

标签: subdomain admin development-environment prestashop-1.6

我是prestashop的新手,我正在尝试设置我继承的prestashop网站的开发版本,但我遇到了一些问题。我们的站点标识https://www.rawlinspaints.com,我已经设置了dev.rawlinspaints.com的子域并创建了db的副本,并将dev站点链接到新的db并将所有文件复制到dev站点。开发站点加载,但不渲染任何图像,并且css和js未加载。我也无法访问该网站的管理员。 我该如何解决这些问题?

任何帮助都非常感激,因为我在新角色中承受了一点压力,无法启动并运行该网站

非常感谢提前

1 个答案:

答案 0 :(得分:0)

如果要克隆Prestashop实例,则需要在unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Data.DB, Datasnap.DBClient, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Error, FireDAC.UI.Intf, FireDAC.Phys.Intf, FireDAC.Stan.Def, FireDAC.Stan.Pool, FireDAC.Stan.Async, FireDAC.Phys, FireDAC.Phys.SQLite, FireDAC.Phys.SQLiteDef, FireDAC.Stan.ExprFuncs, FireDAC.Stan.Param, FireDAC.DatS, FireDAC.DApt.Intf, FireDAC.DApt, FireDAC.VCLUI.Wait, FireDAC.Comp.UI, FireDAC.Comp.Client, FireDAC.Phys.SQLiteVDataSet, FireDAC.Comp.DataSet, Vcl.StdCtrls; type TForm1 = class(TForm) ClientDataSet1: TClientDataSet; ClientDataSet2: TClientDataSet; FDConnection1: TFDConnection; FDQuery1: TFDQuery; FDLocalSQL1: TFDLocalSQL; FDPhysSQLiteDriverLink1: TFDPhysSQLiteDriverLink; FDGUIxWaitCursor1: TFDGUIxWaitCursor; Button1: TButton; procedure Button1Click(Sender: TObject); public procedure AfterConstruction; override; end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.AfterConstruction; var o: TFDLocalSQLDataSet; begin inherited; ClientDataSet1.FieldDefs.Add('Code', ftString, 20); ClientDataSet1.FieldDefs.Add('Amount', ftFMTBcd, 2); ClientDataSet1.FieldDefs.Find('Amount').Precision := 18; ClientDataSet1.CreateDataSet; ClientDataSet1.AppendRecord(['A', 10]); ClientDataSet1.AppendRecord(['B', 20]); ClientDataSet1.AppendRecord(['C', 30]); ClientDataSet2.FieldDefs.Add('Code', ftString, 20); ClientDataSet2.FieldDefs.Add('Amount', ftFMTBcd, 2); ClientDataSet2.FieldDefs.Find('Amount').Precision := 18; ClientDataSet2.CreateDataSet; ClientDataSet2.AppendRecord(['X', 10]); ClientDataSet2.AppendRecord(['B', 20]); ClientDataSet2.AppendRecord(['Y', 30]); o := FDLocalSQL1.DataSets.Add; o.DataSet := ClientDataSet1; o := FDLocalSQL1.DataSets.Add; o.DataSet := ClientDataSet2; FDLocalSQL1.Active := True; end; procedure TForm1.Button1Click(Sender: TObject); begin if FDQuery1.Active then FDQuery1.Close; FDQuery1.Open( 'SELECT * FROM ClientDataSet1 ' + 'UNION ' + 'SELECT * FROM ClientDataSet2' ); ShowMessage(FDQuery1.FindField('Amount').ClassName); end; end. 表格中手动修改PS_SHOP_DOMAINPS_SHOP_DOMAIN_SSL的值,以匹配您当前的网址。