git clone https://github.com/Licenser/orgtool_db
npm install -g brunch yarn bower
cd orgtool_db
mix deps.get
npm install
git submodule update --init
cd priv/orgtool
# if you run as root:
# echo '{ "allow_root": true }' > /root/.bowerrc
yarn
node_modules/ember-cli/bin/ember build --prod
cd -
brunch build
If you build a docker image this is now the time to do it!
Warning thistle will delete an existing database!
./reseed.db
mix phoenix.server
Now you can visit localhost:4000
from your browser.
Ready to run in production? Please check our deployment guides.
The following environment variables are used for the production config:
PORT
- Port to listen toEXT_HOST
- The host from the outsideEXT_PORT
- The port form the outside (might differ fromPORT
if say nginx is used)SECRET_KEY_BASE
- secret key for signing cookies
docker build -t orgtool .
docker-compose up
wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt update
sudo apt install esl-erlang
sudo apt install elixir
sudo apt install postgresql-9.5
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt install nodejs
sudo npm install -g yarn
sudo useradd -m orgtool
sudo su - org tool
systemctl enable postgresql
echo 'CREATE USER orgtool WITH CREATEDB CREATEROLE CREATEUSER' | sudo -u postgres psql
git clone https://github.com/Licenser/orgtool_db
cd orgtool_db
mix deps.get
npm install
./reseed-db.sh
git submodule update --init
cd priv/orgtool
yarn
node_modules/ember-cli/bin/ember build --prod
cd -
mix phoenix.server
docker -t orgtool .
docker tag orgtool orgtool/orgtool
docker push orgtool/orgtool