天天看点

Play Framework OpenShift 常用命令

Common Commands

rhc-tail-files  查看指定app的log信息

help

Displays a list of common commands to use

ctl_app

control your application

ctl_app start
ctl_app stop
ctl_app restart
ctl_app status
           

ctl_all

Similar to ctl_app but controlls application and deps like mysql in one command

ctl_all start
ctl_all stop
ctl_all restart
ctl_all status
           

export

Prints out all available environment variables and their current values which you may use in your application

rm

Removes a file or directory

Use this with care

Remove a file:

rm file
           

Remove a directory and all files and directories under it

rm -rf <dir>
           

tail_all

Displays the last entries in your log files as they are written to

You can hit <ctrl>-c to exit this command

ls

List files and directories

ps

List running applications

kill

Kill running applications using the process id found by calling ps

Be careful when using this command as it should only be used to kill runaway processes, otherwise it is preferable to stop them using the appropriate command such as ctl_app stop

mysql

Opens an interactive MySQL shell

mongo

Opens an interactive MongoDB shell

quota

Lists your application's current disk usage