5.1.1 Work with Guix

Before you try GNU Artanis without application folder created by art create, which is so-called simple mode here, Make sure your environment is set up correctly.

Specifically, if you’re using Guix, you need to specify the config path and i18n path like this:

;; say, we have put artanis.conf and sys/i18n in /path/to/your/
(init-server #:config-path "/path/to/your"
             #:i18n-path "/path/to/your/")

It’s because Guix prevent to install files to the protected system directories which was mounted as read-only. So Guix users have to prepare the necessary files in a writable path, and tell GNU Artanis where to find them. The easiest way to generate these files is to use art create to create an application folder first, then copy the generated conf and sys/i18n to a writable path.

So here’s your code:

;; cp app_folder/conf/artanis.conf /dev/shm
;; cp -r app_folder/sys/i18n /dev/shm
(init-server #:config-path "/dev/shm"
             #:i18n-path "/dev/shm")