Step 0: Before you Start make sure you have Ruby 3.2.2 and NodeJS 16 installed on your system
How To Install Ruby on Rails with rbenv on Ubuntu 22.04
How To Install Node.js on Ubuntu 20.04
rbenv install 3.2.2
rbenv global 3.2.2
Step 1: Install Necessary Dependencies
First, make sure that you have all the necessary dependencies installed on your machine. In your case, you'll need to install:
- SQLite Dev
- Libpq-dev (PostgreSQL's development library)
- MariaDB Dev
- Vips Dev
On a system using apt (like Ubuntu), this could be done with the following command:
sudo apt-get install git sqlite3 libsqlite3-dev libpq-dev libmariadb-dev libvips-dev
Step 2: Clone the Repository
Clone the project repository and enter the directory:
git clone https://github.com/docusealco/docuseal.git
cd docuseal
Step 3: Install the Gems
Install the required Ruby gems:
bundle install
Step 4: Precompile Assets
Before you start your server, precompile assets:
npm install -g yarn
yarn install
RAILS_ENV=production ./bin/shakapacker
Step 5: Start the Server
Now, you can start the Rails server:
RAILS_ENV=production ./bin/rails server