shell - Can't run Yii 2.0 cmd tool on Linux EC2 AWS -


i've developed application locally using yii 2.0 framework (on windows machine). , since i've installed framewrok able go projects folder , tun .\yii , see list of commands run. use lot of custom commands application have developed.

the thing uploaded application ec2 instance on aws, , reaon framework works fine ( can run app) can't run .\yii on script shell.

it linux instance

i've searched lot answers didn't find anything!

i've tried running: yii, .\yii, ./yii none of tem work, seems cmd doesn't recognize shell script, error is:

-bash: sudo: command not found

so, forgetting configuration should have done thi work? how make work??


update

i checking yii.bat file contents:

@echo off rem ------------------------------------------------------------- rem  yii command line bootstrap script windows. rem rem  @author qiang xue <qiang.xue@gmail.com> rem  @link http://www.yiiframework.com/ rem  @copyright copyright (c) 2008 yii software llc rem  @license http://www.yiiframework.com/license/ rem -------------------------------------------------------------  @setlocal  set yii_path=%~dp0  if "%php_command%" == "" set php_command=php.exe  "%php_command%" "%yii_path%yii" %* 

so saying: yii command line bootstrap script windows

i don't understand shell scripts, first thing commes mind obvious wouldn't work on linux, because windows command line tool. problem haven't found source containing linux/unix command line tool yii 2.0

anyone knows can find it? or how make run on linux?

thanks in advance

so guys, if uploading yii 2.0 windows project linux server , need command line tool work, here's do:

download on server template using (basic or advanced) using composer. gonna copy files , replace on original project. are:

composer.json composer.lock license.md readme.md requirements.php yii yii.bat

probably need yii , yii.bat, replaced ones i've listed.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -