Demonstration of a task which runs a startup task, then parallelizes multiple worker tasks, and then fires-off a reducer task.
If passing results around would be important, then could use a chord instead for task2 and task3.
| wget https://downloads.wkhtmltopdf.org/0.12/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb | |
| apt-get install fontconfig libxrender1 xfonts-75dpi xfonts-base | |
| dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb |
| [program:ghost] | |
| command = npm start --production | |
| directory = /var/www/ghost | |
| user = ghost | |
| autostart = true | |
| autorestart = true | |
| stdout_logfile = /var/log/supervisor/ghost.log | |
| stderr_logfile = /var/log/supervisor/ghost_err.log | |
| environment = NODE_ENV="production" |
| # Sample Nginx config with sane caching settings for modern web development | |
| # | |
| # Motivation: | |
| # Modern web development often happens with developer tools open, e. g. the Chrome Dev Tools. | |
| # These tools automatically deactivate all sorts of caching for you, so you always have a fresh | |
| # and juicy version of your assets available. | |
| # At some point, however, you want to show your work to testers, your boss or your client. | |
| # After you implemented and deployed their feedback, they reload the testing page – and report | |
| # the exact same issues as before! What happened? Of course, they did not have developer tools | |
| # open, and of course, they did not empty their caches before navigating to your site. |
Demonstration of a task which runs a startup task, then parallelizes multiple worker tasks, and then fires-off a reducer task.
If passing results around would be important, then could use a chord instead for task2 and task3.
| # To host on root path just use "<Location />" for http://mydomainname.in | |
| # To host on non-root path use "<Location /myreactapp>" for http://mydomainname.in/mypath | |
| # If non-root path, don't forgot to add "homepage": "/myreactapp" in your app's package.json | |
| <VirtualHost *:80> | |
| ServerName mydomainname.in | |
| DirectoryIndex index.html | |
| DocumentRoot /var/www/html | |
| ErrorLog ${APACHE_LOG_DIR}/error.log | |
| CustomLog ${APACHE_LOG_DIR}/access.log combined |
| # the IP(s) on which your node server is running. I chose port 3000. | |
| upstream app_geoforce { | |
| server 127.0.0.1:3000; | |
| } | |
| upstream app_pcodes{ | |
| server 127.0.0.1:3001; | |
| } |
| server { | |
| listen 80; | |
| server_name localhost; | |
| root /Users/wahyudibo/Projects/mylabs/php/nginx; | |
| #error_page 404 /404.html; | |
| # redirect server error pages to the static page /50x.html | |
| # |
This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :