Skip to content
Jia Huang edited this page Jun 12, 2014 · 12 revisions

#Portal Portal relies on several things:

  1. Discourse needs to have embedding set up so that comments can show up
  2. Tessel Oauth is used for all of the sign in, so those have to be pointed properly.

Portal runs on Digital Ocean. The stack is:

  • Nginx
  • Portal
  • Postgres
  • Redis

Bringing up a new box

  1. Bring up a new DO box (512MB works)

  2. Run the following

    apt-get update;
    apt-get install nodejs nodejs-legacy npm nginx postgresql postgresql-contrib
    

The postgres user can use psql to access the postgres database. Launch the postgres console via

sudo -u postgres psql -U postgres
  1. Set up Nginx

  2. Set up backups

  3. Clone down the repo

  4. Fill out the config envs or copy them over from another server

  5. Run the db migrations

  6. Set up Nginx, Postgres, Redis, and the node app to boot on startup.

  7. Run the node app. Forever.

Now hit the server and you should see portal.

Clone this wiki locally