Git
- [Vagrant] (http://www.vagrantup.com/)
$ vagrant up
More info to work with Vagrant, visit documents
$ vagrant ssh
- What's in the box:
- curl
- RVM with Ruby 2.0.0 or later
- NodeJs and NPM (included: Bower, Grunt)
- Compass
- PhantomJS
- JPEGTRAN
- Yeoman
-
heroku-toolbelt
$ npm install -g generator-heroku$ yo herokucopy: { dist: { file: [{ expand: true, dest: '<%= yeoman.dist %>', cwd: 'heroku', src: '*', rename: function (dest, src) { var path = require('path'); if (src === 'distpackage.json') { return path.join(dest, 'package.json'); } return path.join(dest, src); }] } }$ cd dist/ $ heroku apps:create#Heroku Rename app:
$ heroku rename name_app$ grunt build#Push all files in dist folder on heroku:
$ git push heroku master
- Working folders: /home/vagrant/app
- Start the server
$ grunt serve
- Shutdown server
$ grunt halt
If you encounter a problem concerning npm when you run "angular yo". Workarounds as follows:
- Install Node.js with NVM (Node Version Manager)
$ curl https://raw.githubusercontent.com/creationix/nvm/v0.10.0/install.sh | sh $ nvm install 0.10 $ nvm use 0.10 $ nvm alias default 0.10