We're hoping to build a simple dashboard which ports logic from https://gitlab.com/wmde/technical-wishes/survey-tools/survey-tool-2022 and makes it more convenient to use for our CommComm staff during this year's survey.
- Choose technology: bare Python scripts again? Phoenix?
- Create a WMCS project and instance.
- Set up webserver on WMCS and give a public proxy.
- Service script
- systemctl edit --force --full survey-dashboard.service
-
Password-protect-> Split out to follow-up T379817: Password-protect survey audit site
Internal testing site: https://wmde-techwishes-survey.wmcloud.org/
Code: https://gitlab.com/wmde/technical-wishes/survey-tools/survey-dashboard
Admin steps to install:
ssh beta.wmde-techwishes-survey.eqiad1.wikimedia.cloud apt install build-essential cmake libncurses-dev libssl-dev postgresql postgresql-client git clone https://github.com/erlang/otp.git erlang-otp cd erlang-otp git checkout maint-27 ./configure make && make install git clone https://github.com/elixir-lang/elixir cd elixir git checkout v1.17 make && make install adduser survey-service su - postgres createuser --pwprompt survey-user # record password in ~survey-service/.env createdb -O survey-user survey su - survey-service git clone https://gitlab.com/wmde/technical-wishes/survey-tools/survey-dashboard.git cd survey-dashboard mix deps.get mix phx.gen.secret # record password in ~survey-service/.env MIX_ENV=prod mix assets.deploy
Command to start the service:
PHX_HOST=beta.wmde-techwishes-survey.eqiad1.wmcloud.org MIX_ENV=prod mix phx.server