https://ekylibre.atlassian.net/spaces/EKYLIBRE/pages/7405675
Assume that you have completed the global installation of your development environment.
-
Go to your development directory :
cd ~/projects/
-
Clone the repo :
git clone [email protected]:ekylibre/eky.git
orgit clone [email protected]:ekylibre/ekylibre.git
if you work with open source version -
Install gems and yarn packages :
bundle install && yarn install
-
Copy of the necessary configuration files :
cp .env.dist .env
Then ask any developer to share the credentials to put in these files. -
Create and migrate the database :
bundle exec rails db:create db:migrate
-
Add a local GPG key
gpg --gen-key
Follow the instructions.
Then add an environment variable in your .env file
GPG_EMAIL: EMAIL_USED_TO_GENERATE_THE_KEY
-
Load the lexicon data in eky database
bin/rake lexicon:load
-
Add first_run data
-
Go to eky/ekylibre folder
cd ~/projects/ekylibre
-
Create a folder for demo data
mkdir db/first_runs
-
Clone demo repository
git clone [email protected]:ekylibre/first_run-demo.git db/first_runs
-
Launch first run
bin/rake first_run
-
Configure hosts
echo '127.0.0.1 demo.ekylibre.lan' | sudo tee --append /etc/hosts
-
-
Or create you own instance
-
Init you farm ; Exemple: my-farm
rake tenant:init TENANT=my-farm
-
Configure hosts
echo '127.0.0.1 my-farm.ekylibre.lan' | sudo tee --append /etc/hosts
-
-
Start the servers
a. Rails server
bundle exec rails s
b. Sidekiq
bundle exec sidekiq
c. Webpack dev server *optional
bundle exec webpack-dev-server
or bin/webpackdev-server