- DO NOT edit this repository directly. Always edit the server files directly, then push to this repository to back up the files.
- Pull, then push to this repository whenever you're done editing the server files. COPY the server files over here every time; don't move the actual files (or else nothing will be on the server)
- Download newest trial version of PhpStorm. When asked to register, click "License Server" and provide this link http://idea.qinxi1992.cn/. This works for anything created by Jetbrains, although you may have to restart the computer if it doesn't work
- In PhpStorm, select "Create New Project From Existing Files"
- Select "Web server is on remote host, files are accessible via FTP/SFTP/FTPS"
- Give project a name, set saved location in "local path" (in an empty folder), choose "Custom" in "Deployment Options in Upload changed files automatically to the default server", choose "On explicit save action"
- Select "Add new remote server"
- Name = "NSHS Guide Website", Type = "SFTP", SFTP Host = "nshsguide.newton.k12.ma.us", Port = "22", User name = "nshsguideadmin", Auth type = "Key pair (OpenSSH or PuTTY)", Private key file = wherever you put "private_key.ppk" from the repository
- Open the folders in this order: var -> www -> html
- Click html so it's highlighted, Click "Project Root" (top left)
- click Next, then Finish
- Import settings (called either settings-windows.jar or settings-mac.jar)
- That's it! (FOR PHPSTORM)
- Install Node.js
- Download Git; be sure to allow using Git from command line during the setup process
- Install Bower with this line
#!command line
npm install -g bower
- Whenever you need to update Polymer libraries, "Shift + Right click" in the root directory of the project, open cmd prompt there (in the selection menu), and run
#!command line
bower update
- Open "Database" on top right corner under the search icon
- Click the plus button, add MySQL data source
- Fill out the info as follows: Host: localhost, Database: nshsguid_data, User: root, Password: the one you know
- Click the "SSH/SSL" tab
- Fill out the info as follows: Proxy host: nshsguide.newton.k12.ma.us, Port: 22, Proxy user: nshsguideadmin, Auth type: Key Pair (OpenSSH), Private key file: (wherever you put your key)
- Click OK, and you're all good
- ALWAYS select NSHS Guide Project under "Project" (top left), then click Tools -> Deployment -> Download from NSHS Guide Website FIRST to sync
- Save to see edits occur on website (you may have to disable cache & javascript and reenable them to see edits; this can be found with F12, then F1 on Chrome for Windows)
- Commit to BitBucket when you're done editing, then push