Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Made minor grammar and spelling changes

...

For example, the following server.app.use call forces the client to use a secure connection by redirecting any unsecure unsecured connections to the HTTPS URL.

...

To capture access logs, use the appc-logger module, and to capture application logs, you can either use the standard JavaScript console.log() and console.error() methods, or you can use the appc-logger module.

By default, when a application an application is initialized, it loads and creates an appc-logger instance.  The appc-logger instance is bound to the server instance, which will automatically capture access logs for the application.

...

  • The appc cloud accesslog command lists all requests processed by the Appcelerator Cloud in a specified time period. By default, a maximum of 100 log messages are is returned at a time.

  • The appc cloud loglist command lists your published application's log for a specific period. By default, a maximum of 100 log messages are is returned at a time.

  • The appc cloud logcat command tails  command lists your published application's log continuously from Appcelerator Cloud.

...

Starting with API (Arrow) Cloud 1.3.1, if you have scaled your application to use more than one server container, you can make a request to a specific container that your application is running on. To make a request to a specific server container, pass the _serverid parameter with the request and set it to the ID of the server container.  To retrieve the server container ID, run the the appc cloud  accesslog --show_serverid command.

...

Code Block
titleappc.json
{
  cloud: {
    domain: 'www.foo.com',
    domainPath: 'v2'
  }
}
 

You can also use the Appcelertor Appcelerator CLI to manage the domain and path.

...

If you need to remove a domain, use the --remove parameter. For applications with multiple domains, you will be prompted to select which domain to remove. You may optionally pass the domain name to remove with the --remove parameter. 

To route, an application based on a path with the domain name, use the appc cloud config --path <path_name> command to set a path for the application after setting a domain. For example, if you want to bind two applications to the same domain, specify a path for each to route a client to the correct application.

...

For example, if your published URL is  https://1234567890.cloudapp.appcelerator.com/ , you can navigate to your application using the same domain and add a custom token as the subdomain, for example,  https://deadbeef.1234567890.cloudapp.appcelerator.com/ , where deadbeef is the wildcard subdomain. Then, the application can retrieve the host and subdomain:

...

To use this feature you application uses cluster.setupMaster() to set a path to a custom file to use for each child process. A cluster should listen on port 9000 or greater to avoid port conflicts. If the port your application is trying to listen on is in use, a EADDRINUSE error will result. Your application must also have privileges to listen on the specified port, otherwise, an EACCES error will result.

...