node.js - Error on website deployment to Azure keystone.js -


I was trying to make a plain keystone.js starter application built in Ned.Jes in the sharing tier of the Ezoor website I am

I am getting an error after deployment

The page can not be displayed because an internal server error has occurred.

I could have thought, because the main server file was called keystone.js so I named it index.js . Did not fix it

Next, I thought this could be an issue because the mainstone defaults for port 3000, so I added the port information to my index.js file. Here's how:

  // Configure your project's environment by customizing the .env file in the root folder of your project. Requires ('dotenv') load (). // Required keystone var keystone = ('keystone'); // See the beginner Keystone // with the configuration of your project http://keystonejs.com/guide/config // for the available options and documentation Keystone.init ({'name': 'Magic site', 'brand': 'Magic site', 'less':' public ',' static ':' public ',' favicon ':' public / favicon.ico ',' idea ':' templates / visits', 'view engine': 'z True, 'auth': True, 'User Models': 'Read', 'Request', 'Read', 'Port': Process.avi.port || 1337, 'Auto Update'. 'User', 'cookie secret': 'redacted'}); // Load your project's model keystone.import ('model'); // Generic local setup for your templates // Bundle template and layout are required for following any runtime local people (which should be set to be specific to each request //) ./routes/middleware Js should be added to keystone.set ('local', {_: need ('underscore'), env: keystone.get ('env'), utilities: keystone.utils, editable: keystone.content.editable}) ; // Load the keystone of your project. Setup ('route', required ('./routes')); // Generic local setup for your email The following are required by Keystone's // default email templates, if you are using your own, you can delete them // Keystone's admin UI Keystone Configure the navigation bar in the 'Inquiry', 'User': '' '' '' '' '' '' ',' 'post': ['post', 'post-categories'], 'gallery': 'galleries', 'inquiries' the user'}); // Start the keystone to connect to your database and start the web server keystone. Start ();   

There is still no luck though, it works very well on my local machine, just in Azer do not have any ideas?

Update: I have updated my main server file to designate "server.js". I did some excavation and looked at the deployment log in Azure and found:

  command: "D: \ home \ site \ deployment tool \ deploy.cmd" node .jsuscs handling js From NET: From 'D: \ Home \ site \ repository': 'D: \ Home \ site \ wwwroot' file is being deleted: Copying 'index.js' file: Copy 'package.json' file Using: startup script server.js from 'server.js' Package.json. Nodes available on the generated web.config platform. JS version: 0.6.17, 0.6.20, 0.8.2, 0.8.19 , 0.8.26, 0.8.27, 0.10.5, 0.10.18, 0.10.21, 0.10.24, 0.10.26, 0.10.28, 0.10.29 Selected nodes.JS version 0.10.29 Use the package.json file to select a different version D: Updating iisnode.yml at \ home \ site \ wwwroot \ iisnode.yml successfully ended    

< P> The solution was to set up a 64-bit platform on the configuration tab of your AZUUR website In the portal, I created a IISnode.yml file in the root of my node project with the following content: < Pre> logins Enable true devErrors enable: true

Now when I came to the site through the browser I saw detailed error messages, which revealed that Clauderi Anvi variable was not configured. I added the content stored in my project .env file in the App Settings on the Configuration tab of my Ezur website portal page and everything is fixed!

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -