Skip to content

solomon23/solomon-angular-node-seed

Repository files navigation

Solomon's Angular-Node Seed

This is a seed project to build a production ready website containing

Pre-reqs

Please have the following before building

Suggested tools

Optional tools that make the process smoother

Quick start

Clone down the repo

git clone https://github.com/solomon23/solomon-angular-node-seed.git
cd solomon-angular-node-seed
npm install
bower install
grunt server

Note: If you copy the contents of the pull be sure to copy the .hidden files as well

Navigate to http://localhost:3000 and confirm site is functioning

Create the deployment build and add it to git

grunt build
cd ./build
git init
add .
git commit -am "new"

Create the Heroku site

heroku create

heroku config:add BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git 

git push heroku master

heroku ps:scale web=1
heroku config:set NODE_ENV=production
heroku config:set EXPRESS_COOKIE_PASSPHRASE="<secret passphrase>"
heroku config:set PATH="/usr/local/bin:/usr/bin:/bin:/app/vendor/phantomjs/bin"

heroku open

A browser should open with your new site functioning

Static content

Point your cdn to your website as the origin.

Modify the config file ./server/config/prod.coffee

config = 
    cdn: "http://your.cdn.xxx"

Redeploy to heroku

Subsequent deploys to heroku can use the same site

grunt build
grunt deploy

or manually with

grunt build
cd ./build
git add .
git commit -am "New"
git push heroku master

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published