-
Notifications
You must be signed in to change notification settings - Fork 18
Manual Install Guide
scope2229 edited this page Sep 21, 2019
·
10 revisions
Please note that only Linux is supported. If you want to use Prax under Mac OS X, you'll be missing the port redirections (ports 80 -> 20559 and 443 -> 20558) and a DNS resolver. Contributions are welcomed!
- Install
dnsmasq
, and configure it to resolve.dev
domains to localhost:
local=/dev/
address=/dev/127.0.0.1
address=/dev/::1
Which you may install as /etc/NetworkManager/dnsmasq.d/prax
or
/etc/dnsmasq.d/prax
depending on your system configuration.
- Install the iptables rules:
$ sudo cp install/debian/initd /etc/init.d/prax
$ sudo update-rc.d prax defaults
$ sudo /etc/init.d/prax start
You'll may want/need an alternative script for non sysvinit init systems.
-
Either install the latest Crystal release, or clone and build the master branch.
-
Compile Prax:
$ make
You'll may want to specify the crystal binary to use:
$ make CRYSTAL_BIN=/path/to/crystal/bin/crystal
- Prepare Prax environment:
$ mkdir ~/.prax
change directory to add symbolic links
$ cd /usr/local/bin
$ sudo ln -s /path/to/prax/bin/prax # Creates symbolic link so all users can use prax
- Start Prax, and test that it works:
$ ./bin/prax start
$ firefox localhost
- Link your applications, and enjoy:
$ cd path/to/myapp
$ prax link
$ firefox myapp.dev