简体   繁体   English

将文件传输到IIS(尝试使用PHPStorm和Finder)

[英]Transferring files to IIS (attempted using PHPStorm & Finder)

I have a working local copy of a simple website I would like to deploy to an IIS (Internet Information Server) running on my local network. 我有一个简单网站的本地工作副本,我想将其部署到在本地网络上运行的IIS(Internet信息服务器)。 Running on my computer on MAMP, everything works perfectly. 在MAMP上的计算机上运行,​​一切正常。 However, after I try to upload all the files to the web server and load the index.html it fails to GET many different files necessary to load the page. 但是,在尝试将所有文​​件上传到Web服务器并加载index.html后,它无法GET加载页面所需的许多不同文件。 Here is an example error line in the console: 这是控制台中的示例错误行:

GET http://WEBSITE.com/scripts/bootstrap-wizard-custom.js 403 (Forbidden)

Here the methods I have tried to upload files to the live server: 在这里,我尝试过将文件上传到实时服务器的方法:

  1. Using CMD+K in Finder, connecting to the live server with an address like smb://webserver , and then simply dragging files from my local folder to the wwwroot folder. 在Finder中使用CMD+K ,使用smb://webserver类的地址连接到实时服务器,然后将文件从我的本地文件夹拖到wwwroot文件夹。
  2. Using PHPStorm (on Windows), selecting the mapped network folder as my workspace, and then "Deploying" all the files to the server by clicking an "Upload to [webserver]" button. 使用PHPStorm(在Windows上),选择映射的网络文件夹作为我的工作区,然后通过单击“上传到[webserver]”按钮将所有文件“部署”到服务器。

What is the best way to go about transferring these files from my local machine to a web server on the same network? 将这些文件从本地计算机传输到同一网络上的Web服务器的最佳方法是什么?

It turns out it was a permissions problem. 原来这是一个权限问题。 After some permission changing, it now works. 更改某些权限后,它现在可以工作。 Fixed! 固定!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM