简体   繁体   English

如何在 Google APP Engine 中部署 PHP 和 .htaccess 中的项目?

[英]How to deploy a project made in PHP with .htaccess in Google APP Engine?

I hope you can help me, I have the following problem: I am uploading my PHP project to Google App Engine, when I deploy everything is fine, but when I show it in the browser, I do not send, inspect the console and mark me css file errors.我希望你能帮助我,我有以下问题:我正在将我的 PHP 项目上传到 Google App Engine,当我部署一切都很好,但是当我在浏览器中显示它时,我不发送,检查控制台并标记我 css 文件错误。

One of the mistakes I usually get is this: Resource interpreted as Stylesheet but transferred with MIME type text / javascript我经常遇到的错误之一是:资源解释为样式表,但使用 MIME 类型文本传输/javascript

and

Uncaught SyntaxError: Unexpected token '<'未捕获的语法错误:意外的标记“<”

My structure of my project is as follows:我的项目结构如下:

enter image description here在此处输入图像描述

and the structure the app.yaml file is as follow: app.yaml 文件的结构如下:

enter image description here在此处输入图像描述

I think you should start by following some tutorials.我认为您应该从遵循一些教程开始。

You can find below documentation on how to deploy PHP app on Google App Engine:您可以找到以下有关如何在 Google App Engine 上部署 PHP 应用程序的文档:

1. Deploying a PHP 5 App 1. 部署 PHP 5 应用程序

2. Run Laravel on Google App Engine standard environment 2. 在Google App Engine标准环境下运行Laravel

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

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