You will need the following things properly installed on your computer.
git clone <repository-url>
this repository- change into the new directory
npm install
bower install
ember server --proxy http://analytics.bcjobs.ca
- Visit your app at http://localhost:4200.
ember test
ember test --server
ember build
(development)ember build --environment production
(production)
- Make sure
lftp
is installedbrew install lftp
- Make sure
deploy.sh
exists:touch deploy.sh
- Set content of
deploy.sh
to:
#!/bin/bash
FTP_USER={user}
FTP_PASSWORD={password}
FTP_HOST={host:port} (example: www.example.com:29)
FTP_DIR=/
# Deploy assets first
lftp -c "open -u $FTP_USER,$FTP_PASSWORD $FTP_HOST; set ssl:verify-certificate no; mirror --exclude index.html -R dist/ $FTP_DIR"
# Deploy index.html
lftp -c "open -u $FTP_USER,$FTP_PASSWORD $FTP_HOST; set ssl:verify-certificate no; put -O $FTP_DIR dist/index.html"
- Make sure line endings are unix based. For Linux, you can use dos2unix (
dos2unix deploy.sh
) to faciliate this.
make deploy