瀏覽代碼

Explained development a little better

Cameron Kline 8 年之前
父節點
當前提交
fc99860f72
共有 1 個文件被更改,包括 23 次插入2 次删除
  1. 23 2
      README.md

+ 23 - 2
README.md

@@ -42,8 +42,29 @@ You can view logs at the following locations:
 * mongoDB: `/var/log/upstart/mongodb.log`
 
 ### Development
-
-`sudo service musare start`
+Make sure to `vagrant ssh` from the root of the repo before calling these (make sure your ssh'd into the vagrant machine).
+```bash
+# Start backend server
+cd /musare; sudo node backend/app.ks
+	
+# Build frontend in development mode
+cd /musare/frontend; npm run development
+	
+# Build frontend in production mode
+cd /musare/frontend; npm run production
+
+# Automatically build frontend in development mode when files change
+cd /musare/frontend; npm run development-watch
+```
+### Production (these can also be used in development)
+Make sure to `vagrant ssh` from the root of the repo before calling these (make sure your ssh'd into the vagrant machine).
+```bash
+# Start the production server
+sudo service musare start
+
+# Start the mongodb
+sudo service mongodb start
+```
 
 ### FAQ