Save and Clone the original wordpress app
Ideally, you must setup a complete applcation in Staging. (in serbisyo.com, it prod)
Commit the code to bitbucket.
Setup Local (Mac)
git clone the project anywhere in your local.
Create a new project in Flywheel. Ex. serbisyo.
Stop the server
Go to the folder /Users/mikael/Local Sites/serbisyo/app/public
Backup the wp-config.php
Delete the public folder
git clone inside the app folder. ex. git clone git@bitbucket.org:devkinetics/serbisyo.git
once done with cloning, rename the folder from serbisyo to public.
restore the wp-config.php
Add the wp-config.php to .gitignore file to avoid promoting it to production.
You will be promted to update the database. Select yes
You will be need to update and re-activate all the plugins.
In the apperance, select the listing pro.
You will rerun all the listing pro setup.
Right click the gitium project and open ssh console
1 . apt-get update
2. apt-get install git
3. cd /app/public .
This is the source code, there is no .git folder before its not connected to the repo.
4. Using the wp-admin, go to gitium and setup the connection.
This will cause some error. The buttons from gitium has limited command. we must manually control thru cli
The cause of the error is that codes are not properly commited.
5. Go to the folder using gitbash