arunoda / meteor-up-legacy

Production Quality Meteor Deployments
MIT License
2.26k stars 395 forks source link

mupx - parse error #701

Open ffxsam opened 8 years ago

ffxsam commented 8 years ago

During mupx deploy, I get an error:

[xx] - Verifying deployment
[xx] x Verifying deployment: FAILED

    -----------------------------------STDERR-----------------------------------
    zsh:26: parse error near `]]'
    -----------------------------------STDOUT-----------------------------------
    ----------------------------------------------------------------------------

mupx isn't very happy if my shell is zsh, apparently!

ffxsam commented 8 years ago

Would it be possible to fix this?

MasterJames commented 8 years ago

It might be possible to fix the line #26 in mupx/scripts/linux/verify-deployment.sh

while [[ true]]; do

Maybe ...

while true; do

But I imagine that's not the only problem. Anyway you could find a zsh solution for that small bit maybe. Then with echo $0 to test the shell type, go to the alternate block / solution.

ritchieng commented 8 years ago

@MasterJames Hi, may I know where do you find that directory? On your laptop or server?

I'm unable to find that directory to fix the error.

littleStudent commented 8 years ago

@ritchieng https://github.com/arunoda/meteor-up/blob/mupx/scripts/linux/verify-deployment.sh It is not a file on your machine. You would have to modify mupx itself!

ritchieng commented 8 years ago

@littleStudent thanks for your help. Managed to control the file on /usr/local/lib/node_modules/mupx/scripts

ritchieng commented 8 years ago

@MasterJames when I modified /usr/local/lib/node_modules/mupx/scripts on my laptop and run mupx deploy this error came up

x Verifying deployment: FAILED

-----------------------------------STDERR-----------------------------------
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (56) Recv failure: Connection reset by peer zsh:31: = not found -----------------------------------STDOUT-----------------------------------

ritchieng commented 8 years ago

Hi anyone out there facing the same problem, the solution is:

while [true]; do

MasterJames commented 8 years ago

No zsh on server, which uses bash.

archi0309 commented 8 years ago

$ exec bash ( In the server side)

genejr commented 7 years ago

Bumping this for those still interested... zsh is a no-go for a mup deployed app. Use bash and all is well.