From 210b0aef275e183f5d793626157c6c315942f05e Mon Sep 17 00:00:00 2001 From: Taylor Russ Date: Sun, 5 Oct 2014 20:24:12 -0700 Subject: [PATCH] Refactor server and lib into separate folders. --- Procfile | 2 +- providers.js => lib/providers.js | 0 scripts/start.sh | 2 +- app.js => server/app.js | 2 +- banned_numbers_example.js => server/banned_numbers_example.js | 0 keys_example.json => server/keys_example.json | 0 mixpanel_config_example.js => server/mixpanel_config_example.js | 0 {views => server/views}/index.html | 0 8 files changed, 3 insertions(+), 3 deletions(-) rename providers.js => lib/providers.js (100%) rename app.js => server/app.js (99%) rename banned_numbers_example.js => server/banned_numbers_example.js (100%) rename keys_example.json => server/keys_example.json (100%) rename mixpanel_config_example.js => server/mixpanel_config_example.js (100%) rename {views => server/views}/index.html (100%) diff --git a/Procfile b/Procfile index e1d4131..528737e 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: node app.js +web: node server/app.js diff --git a/providers.js b/lib/providers.js similarity index 100% rename from providers.js rename to lib/providers.js diff --git a/scripts/start.sh b/scripts/start.sh index c332e85..46fe802 100755 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -1,3 +1,3 @@ #!/bin/sh -nohup hotnode app.js & +nohup hotnode server/app.js & diff --git a/app.js b/server/app.js similarity index 99% rename from app.js rename to server/app.js index 1867843..f31e660 100644 --- a/app.js +++ b/server/app.js @@ -6,7 +6,7 @@ var express = require('express') , exec = require('child_process').exec , spawn = require('child_process').spawn , Stream = require('stream') - , providers = require('./providers.js') + , providers = require('../lib/providers.js') , redis = require('redis-url').connect() // Optional modules diff --git a/banned_numbers_example.js b/server/banned_numbers_example.js similarity index 100% rename from banned_numbers_example.js rename to server/banned_numbers_example.js diff --git a/keys_example.json b/server/keys_example.json similarity index 100% rename from keys_example.json rename to server/keys_example.json diff --git a/mixpanel_config_example.js b/server/mixpanel_config_example.js similarity index 100% rename from mixpanel_config_example.js rename to server/mixpanel_config_example.js diff --git a/views/index.html b/server/views/index.html similarity index 100% rename from views/index.html rename to server/views/index.html