The t2-projects project is one of a series of clients that makes use of the T2 API to show information we need to manage our business. In particular, this app displays an interface for... (TODO: @mikedoel)
This is an ember.js application that uses ember-cli as a build tool. And as mentioned above, it uses the T2 API. So, there's a bit to do to get going with a local build.
The first thing to do is to clone the T2 API project locally and get it up and running. Details for how to do that are in the README for that project and outside the scope of this README. Note that you need both the API (usually started via foreman and running on port 5000) and the t2-utilization app (port 9001) to execute the project locally.
You'll need to have a reasonably modern version of node.js installed.
brew install node
npm install -g ember-cli
npm install
bower install
Yeah, I know, it's a JavaScript app. However, sass is rad, and we like to use it. Oh, what was that? Did you say use libsass
? I am aware of it's existence and it seems to lag behind. The majority of people using sass seem to be developing against the latest version and I'd like to use their packages. tl;dr Install you some ruby (see .ruby-version
).
rbenv rehash (or rvm magical cd)
bundle install
ember serve --port 9001
And then visit the page at localhost:9001 to verify that it works.
- Add your public key to
~/.ssh/authorized_keys
via theneo
user att2static.neo.com
. - Run
ember build --env production
- Run
scp -r dist/* [email protected]:/var/www/t2projects.neo.com
- Run
scp -r dist/* [email protected]:/var/www/t2projects-staging.neo.com