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

Running Locally · Changes

Page history
Updated Running Locally (textile) authored Mar 10, 2016 by Chimumbwa George Shikopa's avatar Chimumbwa George Shikopa
Hide whitespace changes
Inline Side-by-side
Showing with 11 additions and 22 deletions
+11 -22
  • Running-Locally.textile Running-Locally.textile +11 -22
  • No files found.
Running-Locally.textile
View page @ f8882dee
...@@ -17,41 +17,34 @@ ...@@ -17,41 +17,34 @@
*** Update your Hosts file with the following *** Update your Hosts file with the following
**** <pre><code>sudo vi /etc/hosts</code></pre> **** <pre><code>sudo vi /etc/hosts</code></pre>
**** Add the following lines **** Add the following lines
<pre><code> ***** <pre><code>127.0.0.1 blocpower
127.0.0.1 blocpower
127.0.0.1 blocpower.local 127.0.0.1 blocpower.local
</code></pre> </code></pre>
## Apache Configuration ## Apache Configuration
*** Update Apache to serve PHP by running from the command line (You will need Super User access): *** Update Apache to serve PHP by running from the command line (You will need Super User access):
**** <pre><code> **** <pre><code>sudo su -
sudo su -
vi /etc/apache2/httpd.conf vi /etc/apache2/httpd.conf
</code></pre> </code></pre>
**** Uncomment the following lines **** Uncomment the following lines
***** <pre><code> ***** <pre><code>LoadModule deflate_module libexec/apache2/mod_deflate.so
LoadModule deflate_module libexec/apache2/mod_deflate.so
LoadModule expires_module libexec/apache2/mod_expires.so LoadModule expires_module libexec/apache2/mod_expires.so
LoadModule rewrite_module libexec/apache2/mod_rewrite.so LoadModule rewrite_module libexec/apache2/mod_rewrite.so
LoadModule php5_module libexec/apache2/libphp5.so LoadModule php5_module libexec/apache2/libphp5.so
</code></pre> </code></pre>
*** Create Virtual Hosts *** Create Virtual Hosts
<pre><code> **** <pre><code>mkdir /etc/apache2/vhosts
mkdir /etc/apache2/vhosts
touch /etc/apache2/vhosts/default.conf touch /etc/apache2/vhosts/default.conf
vi /etc/apache2/vhosts/default.conf vi /etc/apache2/vhosts/default.conf
</code></pre> </code></pre>
**** <pre><code> ***** <pre><code><VirtualHost *:80>
<VirtualHost *:80>
DocumentRoot "/Library/WebServer/Documents" DocumentRoot "/Library/WebServer/Documents"
</VirtualHost> </VirtualHost>
</code></pre> </code></pre>
*** <pre><code> *** <pre><code>mkdir /etc/apache2/vhosts
mkdir /etc/apache2/vhosts
touch /etc/apache2/vhosts/marketplace.conf touch /etc/apache2/vhosts/marketplace.conf
vi /etc/apache2/vhosts/marketplace.conf vi /etc/apache2/vhosts/marketplace.conf
</code></pre> </code></pre>
**** <pre><code> **** <pre><code><VirtualHost *:8888>
<VirtualHost *:8888>
DocumentRoot "[path to local Marketplace repo]" DocumentRoot "[path to local Marketplace repo]"
ServerName blocpower.local ServerName blocpower.local
ErrorLog "/private/var/log/apache2/blocpower.local-error_log" ErrorLog "/private/var/log/apache2/blocpower.local-error_log"
...@@ -63,21 +56,18 @@ vi /etc/apache2/vhosts/marketplace.conf ...@@ -63,21 +56,18 @@ vi /etc/apache2/vhosts/marketplace.conf
</VirtualHost> </VirtualHost>
</code></pre> </code></pre>
*** Restart Apache *** Restart Apache
**** <pre><code> ****<pre><code>apachectl restart
apachectl restart
</code></pre> </code></pre>
## MySQL Setup ## MySQL Setup
*** Download and install MySQL *** Download and install MySQL
*** Setup root username and root password *** Setup root username and root password
*** Import Marketplace Database *** Import Marketplace Database
**** <pre><code> **** <pre><code>mysql -u <mysql username> -p < database_backup.sql
mysql -u <mysql username> -p < database_backup.sql
</code></pre> </code></pre>
***** Enter your mysql password, the same password created during setup ***** Enter your mysql password, the same password created during setup
## Wordpress Config ## Wordpress Config
*** Update the file *** Update the file
**** <pre><code> **** <pre><code>…/Marketplace/wordpress/wp-config.php
…/Marketplace/wordpress/wp-config.php
</code></pre> </code></pre>
***** <pre><code> ***** <pre><code>
define('DB_NAME', 'marketplace'); define('DB_NAME', 'marketplace');
...@@ -90,8 +80,7 @@ define('WP_SITEURL','http://blocpower:8888'); ...@@ -90,8 +80,7 @@ define('WP_SITEURL','http://blocpower:8888');
## Wordpress Plugin Config ## Wordpress Plugin Config
*** Navigate to: [[http://blocpower:8888/wp-admin]] *** Navigate to: [[http://blocpower:8888/wp-admin]]
**** Login info: **** Login info:
***** <pre><code> ***** <pre><code>Login: Blocpower
Login: Blocpower
Password: get password from 1Password Password: get password from 1Password
</code></pre> </code></pre>
**** Go to Plugins, and "activate" any plugins that need activating **** Go to Plugins, and "activate" any plugins that need activating
......
Clone repository
  • Continuous Deployment and Continuous Integration
  • Custom Fields & User Editor Plugin Setup
  • Deployment
  • Home
  • Running Locally
  • Stack
  • Testing