1. rhc client
rhc setup
rhc ssh <appname>
- rhc multiple accunt
rhc setup -l username1 rhc app create <appname> <cartridge> rhc account logout rhc setup -l username2
rhc app-show <appname>
==> git URL SSH URL
rhc setup
rhc account
rhc domain-show
rhc app-show -v <appname> |
Show information about your application including usernames and passwords for databases. The -v makes it verbose and is optional |
rhc app start <appname> |
Starts an application |
rhc app stop <appname> |
Stops a running application. Please note, in the paid tiers you will still be charged for an application in a stopped state. You must delete it to not be charged |
rhc cartridge list
rhc cartridge add mysql-5.1 -a <appname>
$ git clone <git_url> <directory_to_create> 예)git clone ssh://유저명@APPNAME-NAMESPACE.rhcloud.com/~/git/APPNAME.git/
git add -A
git add --all . git commit -m "My changes" git push
env | grep OPENSHIFT
C:\Users>rhc setup C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- dl/import (LoadError) from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/pageant.rb:1:in `<top (required)>'
...C:\Users>gem install net-ssh -v 2.9.3.beta1 Fetching: net-ssh-2.9.3.beta1.gem (100%) Successfully installed net-ssh-2.9.3.beta1 Parsing documentation for net-ssh-2.9.3.beta1 Installing ri documentation for net-ssh-2.9.3.beta1 Done installing documentation for net-ssh after 2 seconds 1 gem installed C:\Users>
C:\20.openshift>git clone ssh://USER@APP_NAME.rhcloud.com/~/git/APP_NAME.git/ APP_NAMECloning into 'APP_NAME'...
remote: Counting objects: 3843, done. remote: Compressing objects: 100% (2953/2953), done. remote: Total 3843 (delta 624), reused 3843 (delta 624)Receiving objects: 100% (3843/3843), 85.58 MiB | 1016.00 KiB/s Receiving objects: 100% (3843/3843), 85.79 MiB | 1020.00 KiB/s, done. Resolving deltas: 100% (624/624), done. Checking out files: 100% (6227/6227), done. C:\20.openshift>
'Tool > openshift' 카테고리의 다른 글
openshift / crontab (0) | 2020.04.21 |
---|---|
openshift / SuiteCRM / opensource CRM (0) | 2020.04.21 |
openshift / wordpress backup (0) | 2020.04.21 |
openshift / wordpress / domain (0) | 2020.04.20 |
Deploy war application on OpenShift (0) | 2020.04.20 |