INACTIVE - http://mzl.la/ghe-archive - NodeJS application that hosts details for your makes
Перейти к файлу
Christopher DeCairos 5a7873130b
Merge pull request #77 from mozilla/updatenode
update node version
2018-01-10 11:36:43 -05:00
lib Finish removing makeapi bits 2017-01-09 16:05:19 -05:00
locale deprecation notice 2015-10-19 14:49:56 -07:00
public/static making it fit{ 2015-10-19 14:58:15 -07:00
views making it fit{ 2015-10-19 14:58:15 -07:00
.gitignore commit locale folder and sub-folders 2015-10-02 12:35:02 -04:00
Procfile Add a Procfile 2015-10-01 14:39:39 -04:00
README.md Bug 919177 - Add support for multiple subdomains 2014-01-22 11:29:15 -05:00
bower.json [#974022] Update analytics version 2014-02-24 14:28:12 -05:00
env.dist Remove profile bits 2015-10-23 17:44:41 -04:00
package.json update node version 2017-11-13 11:49:02 +01:00
routes.js handle requests to / 2017-02-10 17:09:56 -05:00
server.js forgot to save this file :) 2017-01-09 16:07:57 -05:00

README.md

Make Valet

NodeJS application that hosts details for your makes.

Quick start

  1. Clone this repository via git: git clone https://github.com/mozilla/make-valet.git
  2. Change directory to the repository: cd make-valet/
  3. Install bower if not already installed: npm install -g bower
  4. Install dependencies: npm install
  5. Copy default config to working location: cp env.dist .env
  6. Edit config file with your favourite text editor. See comments in config file for what each option does
  7. Run the server: node server.js

Running make-valet without an Internet connection

make-valet relies upon the xip.io domain to access user subdomains. If you do not have an internet connection available, you'll need to have some other way of setting domains on your local machine.

Edit your /etc/hosts file

For example, if I'm the user jon, you'll need to add an entry for jon.127.0.0.1.xip.io to your local hosts file:

127.0.0.1 jon.127.0.0.1.xip.io

The downside of this approach is that you'll need to add a hostname for each user you create locally.

Run a local DNS resolver

If you're running the make-valet offline with a number of users, you should use a local DNS resolver like dnsmasq to scale up to any number of users