Server runs on Linux, OS X, BSD and Windows.
You just need node and npm. Install them with your package manager or download the official installer.
Debian\Ubuntu: Also install package nodejs-legacy
.
To easily apply updates and other changes, I recommend using git to download instead of using a zip-file/automated installer.
Run curl -sS http://os.js.org/installer | sh
.
$ sudo npm install -g grunt-cli
# You can also download and extarct the latest zip
$ git clone https://github.com/andersevenrud/OS.js-v2.git
$ cd OS.js-v2
$ npm install
$ grunt
Download and run http://os.js.org/installer.exe.
Run cmd
as Administrator (important)!
$ npm install -g grunt-cli
# You can also download and extarct the latest zip
$ git clone https://github.com/andersevenrud/OS.js-v2.git
$ cd OS.js-v2
$ npm install
# This is required to make the Development Environment work, but is optional.
$ bin\create-windows-symlinks
$ grunt --force
A Vagrant file is also included so you can easily set up a development or testing environment in a Virtual Machine.
Just use this configuration file.
$ vagrant plugin install vagrant-omnibus
$ vagrant plugin install vagrant-hostsupdater
$ vagrant plugin install vagrant-vbguest
$ vagrant up
You can also use Docker to set up an environment.
You can grab a configuration from the community repo
(you can also find detailed instructions here), or generate one yourself with ./bin/build-docker-image.sh
.
Make sure the VFS directories in vfs/
are given the same permissions as the web-servers running user.
- Production:
./bin/start-node-dist.sh
orbin\win-start-node-dist
- Developement:
./bin/start-node-dev.sh
orbin\win-start-node-dev
- Production:
./bin/start-php-dist.sh
- Developement:
./bin/start-php-dev.sh
Run grunt apache-vhost
to generate config file (or look in doc/ for example)
Note You have to enable mod_rewrite for Apache and make sure htaccess is allowed.
Run grunt lighttpd-config
to generate config file (or look in doc/ for example)
Run grunt nginx-config
to generate config file (or look in doc/ for example)
Works fine. Just look up the Apache section above for configuration.
If you have a "webhost" (or "webhotel") with ex. cPanel without shell access (or no node support), you can run OS.js, but has to be built on another computer, then transfered over (just follow the instructions above).
The only downside here is that you'd have to run from /OS.js-v2/dist/ without doing modifications to the setup.
OS.js can run as a X11 Desktop.
Full documentation here.
I have documentation on how to set up optional core features:
You can find instructions in this manual.
Download and extract the latest zip, or use the preferred method (git):
$ git pull
# Build all changes
$ grunt
# Or just core and packages
$ grunt core packages