-
Notifications
You must be signed in to change notification settings - Fork 15
Windows Configuration
Cooper Filby edited this page Oct 9, 2017
·
1 revision
Begin by logging in as the SparkEd User you created.
- Click on
Start
- Type
Firewall
and open windows firewall - Create a new rule to allow TCP traffic to the port you intend to IIS to run SparkEd on (Ex: 80/443).
- Open Command Prompt, make sure you are in the root directory or the directory where you want to contain the application.
- Create new directory:
mkdir SparkEd
- Cd into the directory:
cd SparkEd
- Clone the git repository:
git clone <repository_link_here>
- Open
Command Prompt
as administrator - Run demeteorizer on application:
demeteorizer -o <path_to_repo>
If you encounter an error thatCannot find the module meteor.js
:- Go to
C:\Users\<username>\AppData\Roaming\npm
and renamemeteor
andmeteor.cmd
toold.meteor
andold.meteor.cmd
- Run
demeteorizer -o c:\SparkEd\manoap
again
If you encounter an error sayingYou are not in a Meteor project directory
- Run
meteor install
in the application directory - Run
demeteorizer -o c:\SparkEd\manoap
- Go to
- Cd into the
server
directory of the application:cd <path_to_repo>\bundle\programs\server
- Install npm:
npm install
- Go to start
- Type in
IIS
- Select
Internet Information Services (IIS) Manager
- Collapse the Server name then collapse sites, make sure you have the
Default Site
, if not, create it - Right Click on
Sites
thenAdd New Site
- Enter the site name
- Set the
Physical Path
to the site root directory - Set Port to the desired open Port
- Click ok, the site should be start automatically, if not, start the site.
- Test to see if it is working by searching in your browser for:
http://localhost:<port_number>
- Open
Command Prompt
- Cd to the root directory of the application
- Run:
touch web.config
- Open the file using Notepad++ or your preferred text editor
- Edit the
web.config
file to look like the following
<configuration>
<appSettings>
<add key="MONGO_URL" value="mongodb://<user_name>:<password>@localhost:27017/<db_name>" />
<add key="ROOT_URL" value="http://<domain_name>" />
</appSettings>
<system.webServer>
<handlers>
<add name="iisnode" path="bundle/main.js" verb="*" modules="iisnode" />
</handlers>
<rewrite>
<rules>
<rule name="SparkEd">
<match url="/*" />
<action type="Rewrite" url="bundle/main.js" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Finally, verify that the application is running by navigating to http://localhost:<port_number>
in your browser.