This is a simple version of putting our things on the internet yet. Code like it's 1997, baby! YEOW!
- Download MAMP: https://www.mamp.info
- Install and run MAMP (not MAMP pro!)
- Set ports to 80 + 3306
- Grab the files from Github with
git clone git@github.com:fitzroyacademy/simple.git - Set MAMP's settings to look at the above github directory
- Turn MAMP on!
Now SCSS:
- install npm
npm install -g sass
- Make sure MAMP is running
- open the main folder in terminal
sass --watch assets/scss/fit.scss assets/css/fit.cssto make SCSS compilegit pullto get the latest codez- edit things!
Do it pretty stricty in this order:
git statusto see what git thinks you've donegit add .to 'add' your changed codegit commit -m "your message goes here"to explain the mess you've madegit pullto get the latest from the server before sending your own- If you get an error here we'll have to merge! Talk to Will.
git pushto send your code to the internets
- If you
git pulland get a new screen showing a bunch of merge conflict stuff, hit:qato quit the editor - Once done go ahead and
git add .and so on
Use <!-- todo --> to mark things we need to fix. (command + ? on Sublime for comments)
- Make sure you have
git pushfor your latest changes - Go to https://earl.serversaurus.com.au:2083/
- Login with the right user/pass
- Find 'terminal' (open in safari / FF if it doesn't work)
cd public_html<-- get into the right directorygit pull<-- pulls the latest version from git to the site