Help Center


Install Chaskiq on Windows 10 for Development

https://app.chaskiq.io/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBbXdEIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--827f2d0b5794f7bb660c48b79e228655bd857bed/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2RkhKbGMybDZaVjkwYjE5c2FXMXBkRnNIYVdscGFRPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--cf24ea7784b3789671bb09c4029aca003c26b32d/me.jpg

Written by Miguel Michelson

updated

So you want to set up development environment for Chaskiq on Windows 10? You can do it easily using Windows Subsystem for Linux 579 feature. It is faster too.This setup needs Windows 10 Anniversary Update. We’ll assume that you already installed Windows Subsystem for Linux (Ubuntu) on your Windows 10 system. Let’s begin!
Initially follow the steps from the topic Beginners Guide to Install Chaskiq on Ubuntu for Development until the step Clone Chaskiq.Before setting up the database you have to start PostgreSQL service & Redis server manually using following commands

sudo service postgresql start

redis-server --daemonize yes
  1. Then go through all the remaining steps of the Ubuntu guide.

Now your development environment is almost ready. The only problem is every time when you open Ubuntu on Windows you have to start PostgreSQL service & Redis server manually. Don’t worry we can have a work around for this by creating a custom command.

cd ~

Create a new file using the command nano start-chaskiq and paste the content below then save and exit.

#!/bin/bash

# to start PostgreSQL

sudo service postgresql start

# to start redis server

redis-server --daemonize yes

Now modify the CHMOD using below command

chmod +x start-chaskiq

And copy the file to your bin folder

sudo cp start-chaskiq /usr/bin/


It’s done. Now whenever you open the Ubuntu bash just run the command below and start developing

start-chaskiq

To launch web server use bundle exec puma instead of rails server.