This article will guide you thru running a production ready meteor.js app on Digital Ocean with Phusion Passenger and ngnix.
- Create a droplet
- Install Phusion Passanger with NGNIX
- Install node.js
- Configure NGNIX
| <?php | |
| //Popular products function | |
| function popular_products ($atts) { | |
| //Expose the Db to the function | |
| global $wpdb; | |
| //Get the results | |
| $pp = $wpdb->get_results("SELECT `prodid`, SUM(quantity) | |
| FROM `{$wpdb->prefix}wpsc_cart_contents` |
| <?php | |
| /** | |
| * Instagram PHP API | |
| * Example for using the getUserMedia() method | |
| * | |
| * @link https://github.com/cosenary/Instagram-PHP-API | |
| * @author Christian Metz | |
| * @since 31.01.2012 | |
| */ |
| <?php | |
| add_action( 'after_setup_theme', 'bootstrap_setup' ); | |
| if ( ! function_exists( 'bootstrap_setup' ) ): | |
| function bootstrap_setup(){ | |
| add_action( 'init', 'register_menu' ); | |
| <?php | |
| /** | |
| * Template Name: Google+ Feed | |
| */ | |
| /** | |
| * A WordPress page template for a Google+ feed. | |
| * | |
| * @author Dominik Schilling |