Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
M
marketplace
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 0
    • Merge Requests 0
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

and though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here

  • Confidential and Proprietary
  • BlocPower
  • marketplace
  • Wiki
  • Running Locally

Last edited by Jose Daniel Contreras Apr 26, 2016
Page history
This is an old version of this page. You can view the most recent version or browse the history.

Running Locally

1. Upload db to local MySQL database
2. Add the following to your wp-config.php file. This sets the urls in your DB without having to change them in your DB itself.
1. define(‘WP_HOME’,‘http://yourlocalhost’);
2. define(‘WP_SITEURL’,‘http://yourlocalhost’);
3. Login as an Admin, go to Settings=>Permalinks, change the “Common Settings” to “Default”, and Save. Then, select “Post Name” and Save again.
4. You should be all set!

  1. Mac OS X Setup
    1. Requirements
      • Apache
        • Mac OS X comes with Apache preinstalled
      • PHP
        • Mac OS X comes with PHP preinstalled
      • MySQL
      • Clone the Marketplace Repo to your machine
        • https://github.com/Blocp/Marketplace.git
      • Update your Hosts file with the following
        • sudo vi /etc/hosts
        • Add the following lines
          • 127.0.0.1     blocpower
            127.0.0.1     blocpower.local
    2. Apache Configuration
      • Update Apache to serve PHP by running from the command line (You will need Super User access):
        • sudo su -
          vi /etc/apache2/httpd.conf
        • Uncomment the following lines
          • LoadModule deflate_module libexec/apache2/mod_deflate.so
            LoadModule expires_module libexec/apache2/mod_expires.so
            LoadModule rewrite_module libexec/apache2/mod_rewrite.so
            LoadModule php5_module libexec/apache2/libphp5.so
      • Create Virtual Hosts
        • mkdir /etc/apache2/vhosts
          touch /etc/apache2/vhosts/default.conf
          vi /etc/apache2/vhosts/default.conf
          • <VirtualHost *:80>
                DocumentRoot "/Library/WebServer/Documents"
            </VirtualHost>
      • mkdir /etc/apache2/vhosts
        touch /etc/apache2/vhosts/marketplace.conf
        vi /etc/apache2/vhosts/marketplace.conf
        • <VirtualHost *:8888>
                  DocumentRoot "[path to local Marketplace repo]"
                  ServerName blocpower.local
                  ErrorLog "/private/var/log/apache2/blocpower.local-error_log"
                  CustomLog "/private/var/log/apache2/blocpower.local-access_log" common
                  <Directory "[path to local Marketplace repo]">
                      AllowOverride All
                      Require all granted
                  </Directory>
          </VirtualHost>
      • Restart Apache
        ****
        apachectl restart
    3. MySQL Setup
      • Download and install MySQL
      • Setup root username and root password
      • Import Marketplace Database
        • mysql -u <mysql username> -p < database_backup.sql
          • Enter your mysql password, the same password created during setup
    4. Wordpress Config
      • Update the file
        • …/Marketplace/wordpress/wp-config.php
          • 
            define('DB_NAME', 'marketplace');
            define('DB_USER', '<username from MySQL setup>');
            define('DB_PASSWORD', '<password from MySQL setup>');
            define('DB_HOST', '127.0.0.1:3306');
            define('WP_HOME','http://blocpower:8888');
            define('WP_SITEURL','http://blocpower:8888');
    5. Wordpress Plugin Config
      • http://blocpower:8888/wp-admin
        • Login info:
          • Login: Blocpower
            Password: get password from 1Password
        • Go to Plugins, and “activate” any plugins that need activating
          • “Advanced Custom Fields” & “User Role Editor” are usual suspects.
      • Browse the Marketplace
        • http://blocpower:8888
Clone repository
  • Continuous Deployment and Continuous Integration
  • Custom Fields & User Editor Plugin Setup
  • Deployment
  • Home
  • Running Locally
  • Stack
  • Testing