

Just be sure to master the above material first. However, if performance does become an issue, you may want to check out running Apostrophe on multiple cores and/or servers as well. Multicore and multiserver configurationsīecause node is asynchronous, these single-server, single-core instructions are quite adequate for most clients, including many sites with high traffic at the city scale. See the text file /opt/stagecoach/apps/MYAPPNAME/current/data/port for the port number.
#NODEJS IMAGEMAGIC INSTALL#
You can support multiple sites on a single server stagecoach assigns each one a distinct port. and compiler tools so an efficient mongo driver can be compiled by npm yum install gcc automake autoconf libtool make nodejs ImageMagick npm Install. Or, if you wish, you can configure any reverse proxy of your choice to forward traffic on port 3000 to your Apostrophe site. on nodeJS it actually spawns a sub-process to run imagemagick.
#NODEJS IMAGEMAGIC HOW TO#
See the mechanic documentation for how to painlessly configure nginx as your reverse proxy. ImageMagick, mentioned in the title text, is a popular, standalone utility released. Once deployment is complete, you're ready to start welcoming traffic to your website. Continue by reading the stagecoach documentation. Now you're ready to install the stagecoach deployment system and deploy your Apostrophe site. # Used to run things indefinitely restarting as needed # "npm install -g", otherwise it is not very useful # Allow non-root users to run command line applications installed with Yum install gcc automake autoconf libtool make nodejs ImageMagick npm # Install node, imagemagick, npm, and compiler tools so an efficient # Allow the use of the EPEL ("Extra Packages for Enterprise Linux") repository postfix, or another email delivery agentįor CentOS 7 or Red Hat Enterprise 7 Linux, these commands will get you there: # Grab some command line basics.nginx (or another frontend proxy server).imagemagick (the command line utilities convert and identify).
mongodb (version 2.6 or better required).You will need (STOP: use the package manager of your operating system! Do NOT install everything from source code!) Sites running in a multicore configuration will require additional RAM and, of course, CPU cores. Apostrophe's node process and MongoDB will complete for scarce memory on a server with 1GB of RAM.ĭisk space requirements will increase if users routinely upload large files to the media library. Let's grab a photo from Pexels who provide royalty-free images and then try it out: curl -sSL ' > whale.jpg If you checkout the image, you'll see it's around 1148 × 750 and 131KB in size.
#NODEJS IMAGEMAGIC FREE#
MongoDB requires that a minimum of 5GB of free disk space be maintained at all times. The ImageMagick sample is deployed as shrink-image. In our experience a virtual machine with 2GB of RAM and at least 20GB of free storage space is appropriate to comfortably run most Apostrophe sites. Configuring your Linux server for Apostrophe System requirements
