Senad Uka 222b574beb Merge branch 'fix-deploy' into 'master'
Fix deploy

See merge request saburly/gangsta/roraccounting!6
2020-09-04 04:50:01 +00:00
2019-06-20 20:48:19 +02:00
2020-09-04 04:07:43 +03:00
2019-06-22 06:39:40 +02:00
2019-06-20 20:48:19 +02:00
2019-06-20 20:48:19 +02:00
2019-06-20 20:48:19 +02:00
2019-06-20 22:47:39 +02:00
2019-06-20 20:48:19 +02:00
2019-06-20 20:48:19 +02:00
2019-06-22 06:39:40 +02:00
2019-06-20 20:48:19 +02:00
2019-06-20 20:48:19 +02:00
2019-06-20 21:06:31 +02:00
2019-06-20 20:48:19 +02:00
2019-06-20 20:48:19 +02:00
2020-09-04 07:26:05 +03:00
2019-06-22 06:39:40 +02:00
2019-06-20 20:48:19 +02:00
2020-09-04 07:46:17 +03:00
2019-06-23 19:38:26 +02:00

README

First-time setup

Install dependencies with bundle install and yarn --cwd client install (or enter client directory and execute yarn install)

Build docker image with docker build -t roraccounting .

Running

Start docker container with Postgres DB (if not already running) : yarn run dev-db or docker run --name gangstadb -d -p 5432:5432 -e POSTGRES_PASSWORD=docker -e POSTGRES_DB=roraccounting_development roraccounting

Start backend server : BASIC_AUTH_USERNAME=user BASIC_AUTH_PASSWORD=pass yarn run server or BASIC_AUTH_USERNAME=user BASIC_AUTH_PASSWORD=pass PORT=3001 bundle exec rails s

Start frontend with : yarn run client or PORT=3000 yarn --cwd client start

Note about authentication

Authentication is currently basic auth, note ENV variables in starting backend server commands! At the moment, loading from .ENV file is not supported

Heroku Deploy Procedure

Add BASIC_AUTH_USERNAME and BASIC_AUTH_PASSWORD ENV variables to the Heroku.

Deploy master branch from local repository to the heroku : git push heroku master (if heroku is name of the heroku remote)

(For testing purposes) Deploy non-master branch from local repository to the heroku : git push heroku other-branch:master

Description
No description provided
Readme 363 KiB
Languages
JavaScript 57.2%
Ruby 38.2%
CSS 2.3%
HTML 2.2%