Hi everyone, with the release of the 1.0 I've given a shot at trying to setup the development environment and ran into some hurdles. This is a long post so I've split it into two.
In our environment we use windows desktops primarily and our servers are linux headless servers that we simply ssh into. Going through the instructions in the github wiki:
https://github.com/adaptlearning/adapt_framework/wiki/Setting-up-your-development-environment
I've tried to set it up both on my local Windows 7 64-bit machine and on our web server via ssh.
On the server, all the steps complete, including the grunt build. I am able to take the output from the build directory and throw it up on a website and zip it up as a scorm and publish it to our Moodle and all looks to work as expected.
The problem is the 'Viewing the build' step. When I try to run grunt server, I get the following output:
Running "concurrent:server" (concurrent) task
>> Warning: There are more tasks than your concurrency limit. After this limit
>> is reached no further tasks will be run until the current tasks are
>> completed. You can adjust the limit in the concurrent task options
Warning: Running "open:server" (open) task
Warning: Command failed: /home/mgancarz/adapt/framework/node_modules/grunt-open/node_modules/open/vendor/xdg-open: line 584: xdg-mime: command not found
xdg-open: no method available for opening 'http://localhost:9001/'
Use --force to continue.
Aborted due to warnings. Use --force to continue.
Aborted due to warnings.
Same with the grunt server-scorm command. I assume this is because this server doesn't actually have a desktop environment setup and thus can't open a browser and display the content.
It looks like though I technically don't need to run a local server on the machine through grunt, since this machine already runs Apache?
I could just set up some script that copies the finished grunt build to the web directories and refresh my browser. Am I missing anything by excluding the grunt server steps?