简体   繁体   English

如何在OpenShift上更新装订线?

[英]How to update catridges on OpenShift?

Hey guys its a very general question, but I need your help. 大家好,这是一个非常笼统的问题,但我需要您的帮助。 I already have an application at [Edited - Removed my site's link] which uses php 5.3 & now OpenShift has a new catridge called php 5.4..so how can I update the catridge without deleting my app? 我已经在[编辑-删除我的站点的链接]上使用php 5.3了一个应用程序,现在OpenShift有一个名为php 5.4 ..的新catridge,那么如何在不删除我的app的情况下更新catridge?

You would need to create a new application with the 5.4 cartridge and migrate your application to the new gears. 您将需要使用5.4盒式磁带创建一个新应用程序,然后将您的应用程序迁移到新设备。 You currently can not remove and add a new version of a web cartridge. 您目前无法删除和添加新版本的Web墨盒。 (you can try doing the migration with the rhc snapshot command) (您可以尝试使用rhc snapshot命令进行迁移)

Hack for fast switching from PHP 5.3 to 5.4 and back. Hack,可以快速从PHP 5.3切换到5.4,然后又回来。
This is not completely updates the cartridge and may works incorrect. 这不能完全更新墨盒,并且可能无法正常工作。

# Create backup configuration
mv ~/php/configuration ~/php/configuration-orig
cp -r ~/php/configuration-orig ~/php/configuration


# Switch PHP 5.3 -> PHP 5.4
sed -i 's|libphp5.so|libphp54-php5.so|' ~/php/configuration/etc/conf.d/php.conf
gear restart --cart php


# Switch PHP 5.4 -> PHP 5.3
sed -i 's|libphp54-php5.so|libphp5.so|' ~/php/configuration/etc/conf.d/php.conf
gear restart --cart php

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

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