Compiling AngularJS interface: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
Dcunningham (talk | contribs) No edit summary |
Dcunningham (talk | contribs) No edit summary |
||
| Line 9: | Line 9: | ||
Then: |
Then: |
||
| ⚫ | |||
npm install |
npm install |
||
npm install -g bower |
npm install -g bower |
||
| Line 14: | Line 15: | ||
ln -s /usr/bin/nodejs /usr/local/bin/node |
ln -s /usr/bin/nodejs /usr/local/bin/node |
||
bower --allow-root install |
bower --allow-root install |
||
| ⚫ | |||
gulp build |
gulp build |
||
Revision as of 01:17, 10 April 2018
As root:
On Debian based systems:
apt-get install nodejs
On Redhat based systems:
curl --silent --location https://rpm.nodesource.com/setup_6.x | bash - yum install nodejs
Then:
cd /opt/enswitch/current/web npm install npm install -g bower npm install -g gulp ln -s /usr/bin/nodejs /usr/local/bin/node bower --allow-root install gulp build
Apache can now serve from /opt/enswitch/current/web/dist/.
Alternatively you can run a development version using "gulp serve". You should use the URL on port 3000, and allow access to it through the firewall.