Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to move a cloud code?(Hosting Run Express in Cloud Code) #561

Closed
Avatarchik opened this issue Feb 22, 2016 · 1 comment
Closed

How to move a cloud code?(Hosting Run Express in Cloud Code) #561

Avatarchik opened this issue Feb 22, 2016 · 1 comment

Comments

@Avatarchik
Copy link

Hi!
main.js
require('./app.js');

app.js
var Country = Parse.Object.extend('Country');
var auth = require('http-auth');

// These two lines are required to initialize Express in Cloud Code.
express = require('express');
app = express();
// Global app configuration section
app.set('views', 'cloud/views'); // Specify the folder to find templates
app.set('view engine', 'ejs'); // Set the template engine

how do I make it work?

@Avatarchik Avatarchik changed the title How to move a cloud code? How to move a cloud code?(Run Express in Cloud Code) Feb 22, 2016
@Avatarchik Avatarchik changed the title How to move a cloud code?(Run Express in Cloud Code) How to move a cloud code?(Hosting Run Express in Cloud Code) Feb 22, 2016
@gfosco
Copy link
Contributor

gfosco commented Feb 22, 2016

Why would you run express in cloud code? It is kind of backwards, cloud code is running in express...

Maybe you should check the example project: https://github.com/parseplatform/parse-server-example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants