I am using Parse.com CloudCode to create some custom functionality for an iOS app.
To deploy a CloudCode app you use:
terminal% parse deploy
Everything was working fine and I was able to upload my cloud code to the backend but suddenly it stopped working and I absolutely don't know why. I am getting this response:
requested resource was not found
EDIT:
The main.js
is there, that is the file that has the changes. I tried to delete and recreate the app. The config is also correct. I restarted my computer, reset the connection, but still getting that response. Here is the full Terminal response after running % parse deploy
:
% parse deploy
Uploading source files
Uploading recent changes to scripts...
The following files will be uploaded:
/path/to/main.js
Deploy failed. Retrying deploy...
Uploading source files
Uploading recent changes to scripts...
The following files will be uploaded:
/path/to/main.js
Deploy failed. Retrying deploy...
Uploading source files
Uploading recent changes to scripts...
The following files will be uploaded:
/path/to/main.js
Deploy failed. Retrying deploy...
Uploading source files
Uploading recent changes to scripts...
The following files will be uploaded:
/path/to/main.js
Deploy failed. Retrying deploy...
Uploading source files
Uploading recent changes to scripts...
The following files will be uploaded:
/path/to/main.js
requested resource was not found
Did anybody have the same or similar problem? If yes, what steps helped to resolve this issue?
Thanks in advance.
chmod 777 ~/Downloads/parse-osx-2.1.0
Then edit your host file:sudo nano /etc/hosts
Add127.0.0.1 parse.com
to the host file, ^O, then ^X Navigate to your project directory, and run~/Downloads/parse-osx-2.1.0 deploy
Now remove parse.com from your host file. The reason for the host file thing is that the Parse CLI auto updates it self on every command, and this prevents that. – Spaceman