标签: deploying

如何在Google App Engine上设置我的域名?

我已经建立了一个网站,可以继续使用App Engine,并且已经部署了它.我已将我的域名重定向到ghs.google.com,并且它已成功转到我的网站.

问题是,在地址栏中,"www.mysite.com"变成了"myappid.appspot.com",而我还没有得到如何让它留在"www.mysite.com"的线索.

这看起来很简单,但它开始让我疯狂!

我该如何解决?

dns google-app-engine deploying

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

如何在c ++和QML应用程序中使用qrc?

我在Windows7上用c ++ qnd Qt Creator(QML)编写了一个Qt Quick Desktop应用程序.现在我必须部署它,我需要隐藏qml文件和图像(意思是:将它们放在资源等中)

我已经读过使用.qrc文件有一个很好的方法.我阅读了有关这些文件的文档,并为我的应用程序创建了一个文件,如下所示:

<RCC>
<qresource prefix="/">
    <file>qml/GenericHostApplicationQML/myMain.qml</file>
    <file>qml/GenericHostApplicationQML/content/PressAndHoldButton.qml</file>
    <file>qml/GenericHostApplicationQML/content/TextButton.qml</file>
    <file>qml/GenericHostApplicationQML/content/pics/advancedsettings.png</file>
    <file>qml/GenericHostApplicationQML/content/pics/cnruninstall.png</file>
    <file>qml/GenericHostApplicationQML/content/pics/dialog_cancel.png</file>
    <file>qml/GenericHostApplicationQML/content/pics/folder_explore.png</file>
    <file>qml/GenericHostApplicationQML/content/pics/gnome_session_switch.png</file>
    <file>qml/GenericHostApplicationQML/content/pics/mail2_send.png</file>
    <file>qml/GenericHostApplicationQML/content/pics/Picture1.png</file>
    <file>qml/GenericHostApplicationQML/content/pics/Picture2.png</file>
</qresource>
Run Code Online (Sandbox Code Playgroud)

在main.cpp中,我正在加载Main.qml文件,如:

int main(int argc, char *argv[])
{
   QApplication app(argc, argv);
   QDeclarativeView view;
   view.setSource(QUrl::fromLocalFile("qml/GenericHostApplicationQML/myMain.qml"));
   view.show();
   return app.exec();
}
Run Code Online (Sandbox Code Playgroud)

我试图从Resources.qrc中读取myMain.qml文件,如:

view.setSource(QUrl(":/qml/GenericHostApplicationQML/myMain.qml"));//I added the ":/"
Run Code Online (Sandbox Code Playgroud)

但我有这个错误:

file:///qml/GenericHostApplicationQML/myMain.qml: File not found 
Run Code Online (Sandbox Code Playgroud)

当我尝试这个:

view.setSource(QUrl::fromLocalFile(":/qml/GenericHostApplicationQML/myMain.qml"));
Run Code Online (Sandbox Code Playgroud)

我明白了:

file:///C:/Users/ayalafre/Desktop/ghaQML/GenericHostApplicationQML-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Release/:/qml/GenericHostApplicationQML/myMain.qml: File not found
Run Code Online (Sandbox Code Playgroud)

好像我的Qt不知道该怎么办:":/".

我必须使用.qrc文件:

  • 加载myMain.qml文件
  • 使用导入到myMain.qml中的qml文件
  • 在我的qml文件中使用图像

你能解释一下有什么问题吗?以及为了在c ++和qml中使用.qrc我必须做些什么?

非常感谢:)

c++ qt deploying qml

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

将应用程序从Eclipse部署到GlassFish

我正在尝试从Eclipse部署应用程序到GlassFish 4服务器,但是我收到此错误:

cannot Deploy elearning
deploy is failing=Application with name [elearning] is not deployed
Run Code Online (Sandbox Code Playgroud)

在glassfish日志文件中没有错误,也没有关于部署的信息.但是在eclipse日志中,存在以下错误:

!ENTRY oracle.eclipse.tools.glassfish 1 1 2014-11-17 16:30:51.474
!MESSAGE GlassFish: Deploy direcotry C:\glassfish4\glassfish\domains\domain1\eclipseApps\elearning

!ENTRY oracle.eclipse.tools.glassfish 4 1 2014-11-17 16:30:51.599
!MESSAGE GlassFish: deploy is failing=
!STACK 0
java.lang.Exception: deploy is failing=Application with name [elearning] is not deployed
    at oracle.eclipse.tools.glassfish.GlassfishServerBehaviourDelegate.publishDeployedDirectory(GlassfishServerBehaviourDelegate.java:612)
    at oracle.eclipse.tools.glassfish.GlassfishV4ServerBehavior.publishModuleForGlassFishV3(GlassfishV4ServerBehavior.java:96)
    at oracle.eclipse.tools.glassfish.GlassfishV4ServerBehavior.publishModule(GlassfishV4ServerBehavior.java:56)
    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:1091)
    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:1183)
    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:987)
    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774)
    at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3157)
    at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:345)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY oracle.eclipse.tools.glassfish 4 0 2014-11-17 16:30:51.599
!MESSAGE cannot Deploy elearning
!STACK …
Run Code Online (Sandbox Code Playgroud)

eclipse glassfish deploying glassfish-4

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

部署到 heroku path="/" path="/favicon.ico" 的问题

希望有人能够帮助我解决在将我的 React 应用程序推送到 heroku 时遇到的问题。heroku 日志反复显示以下错误。

at=error code=H10 desc="App crashed" method=GET path="/" host=jp-portfolio.herokuapp.com request_id=4841ef14-b2f2-4ae7-82d7-d47abf123db7 fwd="67.188.208.208" dyno= connect = service= status=503 bytes= protocol=https 2020-04-02T06:42:02.631967+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon. ico" host=jp-portfolio.herokuapp.com request_id=552909aa-ff34-4a4d-91cc-c817938b39b7 fwd="67.188.208.208" dyno= connect= service= status=503 bytes= protocol=https

对我来说,它似乎不像我在 app.js 文件上定义路由的方式,所以我更改了 app.js 文件并添加了路由器文件以遵循 React Routing 在本地机器上工作但不是 Heroku但它没有为我工作。

和这个

React 路由器无法处理路由并返回不匹配的警告

App.js 文件

import React, { Component } from 'react'

class App extends Component {
static propTypes = {
  children: PropTypes.node
}

render() {
  const { children } …
Run Code Online (Sandbox Code Playgroud)

routes heroku deploying reactjs create-react-app

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

使用Apache部署Django

我已经有一个Django Web应用程序正在运行,我希望通过Internet可以看到它.我甚至会考虑单独使用Django,因为它只是我想向某人展示的原型,而安全性对我来说并不是我的首要任务.但是,由于这看起来无法实现(或者至少我无法做到),我正在转向Apache.

问题是有很多教程,每个教程都做不同的事情.

到目前为止,我已经: - 已安装的apache(和有效) - 已安装的mod_wsgi(并且模块已加载到Apache中) - 因为我的Django Web应用程序位于/ home/myuser/www/myapp /(或者至少我存储的地方) manage.py文件,应用程序的其余部分在/ home/myuser/www/myapp/myapp /),我试图让apache指向那里.所以我创建了(home/myuser/www/myapp/apache.conf/web.wsgi,其中包含以下内容:

import os, sys
sys.path.append('/home/myuser/www/myapp/')
os.environ['DJANGO_SETTINGS_MODULE'] = 'myapp.settings'

import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
Run Code Online (Sandbox Code Playgroud)

顺便说一下,在/home/myuser/www/myapp/myapp/wsgi.py中创建新项目时,我也会自动生成wsg​​i Django.也许我应该使用这个,但直到现在我找到的教程都没有提到这个文件.无论如何,它的内容是:

import os
# We defer to a DJANGO_SETTINGS_MODULE already in the environment. This breaks
# if running multiple sites in the same mod_wsgi process. To fix this, use
# mod_wsgi daemon mode with each site in its own daemon process, or use
# os.environ["DJANGO_SETTINGS_MODULE"] = "myapp.settings"
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myapp.settings")

# This …
Run Code Online (Sandbox Code Playgroud)

apache django apache2 deploying

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

(gcloud.preview.app.deploy)错误响应:[13]托管虚拟机无法托管在应用程序的区域中

我已按照教程https://cloud.google.com/nodejs/getting-started/hello-world(在node.js上部署到Google Cloud Platform hello world应用程序)并在最后一个命令之后:

$ gcloud预览应用程序部署app.yaml --promote

我明白了:

将文件复制到Google云端存储...将文件同步到[gs://staging.first-server-1117.appspot.com/].更新模块[默认] ...失败.错误:(gcloud.preview.app.deploy)错误响应:[13]托管虚拟机无法托管在应用程序的区域中.(e~)版本:20151103t135918.388305842753805715

即使使用未选择的时区也会发生这种情况.

为什么会这样?或者它是如何修复的?

谢谢.

google-app-engine deploying node.js gcloud-node

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

git aws.push命令不是由eb init创建的

我正在关注如何在AWS上部署Ruby on Rails应用程序的教程,并在尝试执行git aws.push命令时遇到以下错误:

fatal: cannot exec 'git-aws.push': Not a directory

根据本教程eb init本来已经创造了我这个新的git命令,但显然事实并非如此......已经有人偶然发现了这个问题?我怎样才能解决这个问题?

我正在使用Mac OS Lion.

谢谢

deploying amazon-web-services ruby-on-rails-3 amazon-elastic-beanstalk

7
推荐指数
2
解决办法
7974
查看次数

IIS7 MVC部署 - 在某些操作上找不到404

部署后,我的Web应用程序部分停止工作.每个控制器上的索引都可以正常工作,并且一个表单通过Ajax发布,登录也可以.除此之外产生404.我明白在集成模式下不应该做任何特别的事情.

我不知道如何进行故障排除.

一些信息:

  • 应用程序使用默认应用程序池设置为集成模式.
  • WebApp在net framework 3.5中完成.
  • 我使用默认路由模型.
  • 操作系统是Windows Server 2008.
  • IIS 7

任何帮助表示赞赏.谢谢.

编辑:我确定只接受ID参数的操作不起作用.相反,当我在默认MVC应用程序的Home控制器中添加虚拟id方法时,它可以工作.

编辑2:我发现了问题.该网站的几个页面上的链接没有使用ActionLink助手.由于Ajax调用,很难看到.因此,永远不要将链接硬编码到网站上的操作,甚至是临时的.

model-view-controller iis-7 deploying

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

heroku部署需要很长时间

我们有一个相当大的应用程序正在使用heroku ...它是一个使用browsercms作为基础的应用程序,它建立在它之上.Gemfile并不是那么大(我们没有比普通应用程序更多的宝石),但出于某种原因,部署需要15分钟.由于所有资产,将资产编译并推送到s3(通过assetsync)大约需要5分钟,但剩余的10分钟用于此期间:

----> Heroku receiving push   
-----> Removing .DS_Store files
-----> Ruby/Rails app detected
-----> Using Ruby version: ruby-1.9.3
-----> Installing dependencies using Bundler version 1.2.0
       Running: bundle install --without development:test --path vendor/bundle --binstubs bin/ --deployment
Run Code Online (Sandbox Code Playgroud)

任何人都有任何线索为什么这部分需要这么长时间?gemfile锁在repo中,并推送到heroku,这里是我们的gemfile的主旨:https://gist.github.com/aa44bbb06eed97736c20

编辑:我们在轨道3.2.7

heroku deploying bundler asset-pipeline gemfile

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

使用电容器在真实的 Android 设备上运行 Ionic 5 应用程序

我最近开始使用 ionic 5 来处理电容器。我已阅读所有电容器文档,但没有找到任何有关如何在真正的 Android 设备上运行 Ionic 5 应用程序的指导。谁能指导我如何在真正的 Android 设备上运行 Ionic 5 应用程序?谢谢。

android deploying ionic-framework capacitor

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