I need to use the command line tool provided by Parse.com to get the latest Cloud Code from my application, how can I do that? I'm working with a team and can not overwrite the existing Cloud Code.
You can now download deployed Cloud Code through the CLI.
Through the command prompt (on Windows) type:
parse new
Parse will then ask you to provide your user credentials. Once provided, the command prompt will ask, Would you like to create a new app, or add Cloud Code to an existing app? Choose (e)xisting, and you will be provided with a list of apps you currently have access to to choose from and the rest is cake.
Make sure you update the Parse CLI in order to get this work by using:
parse update
You can use parse download command:
parse download -l [location]
Works great in our team. For more information about the command use
parse download --help.
Note: if no location is provided, code will be downloaded to a temporary folder.
UPDATE: You can now download your deployed code easily with the Parse CLI:
parse download
HISTORIAL: Previously (May 11, 2015) there are only 2 ways to get cloud code deployed by someone else on your team:
You get a copy directly from your teammate
You go to the Parse.com Core dashboard, tap on Cloud Code (below the Data section with all the classes), then click on each file on at a time and copy/paste the window contents into a file with the appropriate name.
Neither of these are ideal solutions.
Ideally, your team would use a two-part solution like this:
A version control system (like Github or similar) that keeps track of your most recent version
A dev mirror of your Parse.com app that gives you a sandbox for testing changes to the code
Related
I am really not sure what I am doing. I have no idea what is coding , and I never used the terminal on my Mac. I am trying to set up a Course Builder on Google App Engine, and the instructions are telling to to follow these steps:
Deploy from Mac and Linux:
Open a command prompt and get to your coursebuilder directory. Type the following command:
bash ./scripts/deploy.sh <your_project_id>
If your deployment was successful, you can visit your new site.
That is what I am getting:
elena$ bash ./scripts/deploy.sh on-point-learning
bash: ./scripts/deploy.sh: No such file or directory
I am completely lost, is there anyone who can help me? And please in English, I speak no Computer, even using the Terminal makes my hands sweaty and my heartbeat unstable.
p.s.: I do apologize and maybe this questions was answered before but I understand nothing in the questions/answers I read.
First, you need to have downloaded and installed the Google App Engine SDK. Follow all the steps documented by Google here. You need to follow all the steps so that all the files are installed/copied and the necessary shortcuts created
Your course builder will be in a folder (directory)
a) Open command line and change directory to your project folder i.e. something like cd <path_to_project_folder>
b) Type gcloud app deploy
Note: Google's documentation says - Use the install script to add Cloud SDK tools to your PATH. You need to make sure you do that so that typing commands in your command line will work
If you do not want to tinker with your command line or you want to make things very very simple, then you can try using a GUI, for example our App, NoCommandLine
a) Select File > Add Existing Application
b) Navigate to your Course Builder Folder and select the file named app.yaml
c) Select your programming language and the framework (if neccessary), click on Add.
d) To run your project (on your local machine) or deploy it to Production, you just select it from the UI, and click the run or deploy icon.
I have an existing parse.com project with some hosted code and some cloud code. I have a new machine that I would like to move the development to and have found no way in the documentation on how to do this.
I wish to hook up to an existing project with my parse command-line tool (Windows) and get the current files in that project to my machine, how do I do this?
Looking at the documentation, there seems only to be a way to set up a new project, to create new files. Running the commands;
> parse new Project1
Email: xxx#gmail.com
Password:
Select application:
1:Project1
Select an App: 1
will only create a new folder and not containing the files that are already in that project.
Is there any way to get round this or do I manually have to move the files and redeploy from the new machine?
This is currently not possible out of the box. You would need to copy the files from your old machine to your new machine and then you should be able to deploy from there.
A possible workflow to make this easier in the future would be to host the Cloud Code you write on a server (preferably using some sort of source control) and let the server deploy any changes that get pushed to the repo so you have one centralized place that holds the latest code and it is easy to work on it as a team.
I have just started to play around with RAML. I ran API designer locally using grunt server and used that to design a simple api doc in RAML.
Does that raml file get saved in the local file system? I coudn't find the location where that file get saved in the local file system. I need that file since I've to commit it GIT repository.
you can get your files with the export function. there's no other way to do that.
Import/export works with zip files.
Api designer menu
The export button doesn't show with the default localStorageFileSystem. You need a different file system that allows exporting, e.g. RAML API Designer File Save Location or https://www.npmjs.com/package/express-raml-store
For the record, at the time this question was asked, there was an issue with the locally run API designer (see api - designer issue #248 here). Since then, the issue was solved and it works fine now.
How can I clone an existing Parse Cloud Project files to my computer with the command line tool? I tried parse new and selected a project but it created a folder with new files, not the files that I already had in the Parse Cloud.
Note: I did not find clue regarding that point in the Parse cloud code documentation neither via Google.
Thanks!
With the new release of parse-cli, this is possible now. Make sure your cli is at least at version 2.2.5
Follow below instructions to download cloud code files on your new machine:
parse new then choose e for existing app, then choose your app. This will create a new project directory.
Browse to your project folder using command line tool
Use this command to download: parse download [app] -f. Replace [app] with the app name. Note that -f will override all current files in the directory
If you want to download code files to existing project, you can skip step 1.
Note this is now possible (2016), with new features at Parse.
Response from a Parse engineer:
"This is by design, which means that maybe we will include this feature one day. For the moment, the CLI tool cannot pull files from cloud code. The tool can only deploy code to Parse, it is not meant to be used in place of source control.
Thanks."
I spent a lot of time looking up an answer (on Google and the closed Parse forum) to this unanswered question. I finally had an answer from a Parse engineer, after having asked them on the Parse/Facebook bug tracker system, if it was possible to clone existing cloud code.
So I hope this answer will help you guys.
I would like to know how to change Oracle Access Manager's Login page.
I don't want to build a new custom page but only change a few UI components to the default Oracle page (like images and CSS).
The "login page" I'm talking about is: console/login/LoginForm.jsp, but I cannot find it on my server, does any one know where I can find this LoginForm.jsp??
I'm actually looking for the login/LoginForm.jsp in this Oracle documentation.
Any help would be appreciated, thanks!
**Please note that I cannot install any additional programs on that server
You don't need to install any additional software on the server, you just need to be able to copy a WAR file to the console extension directory.
You can build the WAR anywhere, that doesn't have to be done on the server. Expand the look and feel template, which will give you the login/login.jsp file you were looking for, make your changes, build the archive and deploy to your server.
Good luck!