Greenmine/install: Difference between revisions

From Woozle Writes Code
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:
** My [[setups/vdomain|standard location]] for this is <code>/home/{{arg|user}}/site/config/greenmine</code>
** My [[setups/vdomain|standard location]] for this is <code>/home/{{arg|user}}/site/config/greenmine</code>
* Make a copy of the <code>{{arg|local config}}/example</code> folder and name it <code>{{arg|local config}}/local</code>.
* Make a copy of the <code>{{arg|local config}}/example</code> folder and name it <code>{{arg|local config}}/local</code>.


'''Editing in progress'''
'''Editing in progress'''
===Steps===
===Steps===
After [[htyp:Ferreteria/install|installing Ferreteria]], run these commands in a terminal on your web server (you can skip <code>[[mkdir]]</code> wherever the folder already exists):
After [[htyp:Ferreteria/install|installing Ferreteria]], run these commands in a terminal on your web server:
* cd {{arg|$HOME}}
cd {{arg|$HOME}}
* su {{arg|$USER}}
su {{arg|$USER}}
* cd site/git
cd site/git
* {{l/htyp|git clone}} git@gitlab.com:woozalia/greenmine.git
{{l/htyp|git clone}} git@gitlab.com:woozalia/greenmine.git
* cd ../config
cd ../config
* cp -R ../git/greenmine/config greenmine
cp -R ../git/greenmine/config greenmine
cp -R greenmine/example greenmine/local
edit the files in <code>greenmine/local</code> as needed


Note: might want to link instead of copying files that don't need to be edited, so the defaults get updated. Investigate later.
Note: might want to link instead of copying files that don't need to be edited, so the defaults get updated. Investigate later.

Revision as of 14:37, 7 November 2020

  • Install Ferreteria
  • Clone the Greenmine Git repository into a folder of your choice, which we'll call <greenmine base>.
  • Copy the <greenmine base>/config folder to a location outside of [greenmine base].
    • We'll call this new location <local config>.
    • My standard location for this is /home/<user>/site/config/greenmine
  • Make a copy of the <local config>/example folder and name it <local config>/local.

Editing in progress

Steps

After installing Ferreteria, run these commands in a terminal on your web server:

cd <$HOME>
su <$USER>
cd site/git
git clone git@gitlab.com:woozalia/greenmine.git
cd ../config
cp -R ../git/greenmine/config greenmine
cp -R greenmine/example greenmine/local

edit the files in greenmine/local as needed

Note: might want to link instead of copying files that don't need to be edited, so the defaults get updated. Investigate later.