agstrike / silverstrike

Finance Management Made Easy
https://silverstrike.org
MIT License
424 stars 100 forks source link

Tips for getting this working #138

Open sebastian-burlacu opened 2 years ago

sebastian-burlacu commented 2 years ago

I figured this was the easiest way to share information with others who come here to open an issue. @simhnna if you wish to use these notes to update your documentation and then close this issue that's fine too.

I couldn't get the docker image working at all but I did get it running using the Ubuntu instructions https://silverstrike.org/ubuntu-setup/

I already had apache running and I also didn't want to use SSL so I had to tweak a few things. Hopefully these help anyone else.

When installing prerequisites, I also needed libpq-dev

Before using python, it's recommended to upgrade pip

python -m pip install --upgrade pip

Then installing the driver didn't work, I had to install the binary version

pip install psycopg2-binary

I truncated nginx.conf to read as below:

server {
    listen 8090;
    listen [::]:8090;
    server_name $HOSTNAME;

    charset     utf-8;
    client_max_body_size 5M;

    add_header X-Frame-Options SAMEORIGIN;
    add_header X-Content-Type-Options nosniff;

    location /static {
        alias /srv/webapps/silverstrike/public/static;
    }

    location / {
        uwsgi_pass  unix:/run/uwsgi/app/silverstrike/socket;
        include     /etc/nginx/uwsgi_params;
    }
}

And I commented out the lines in uwsgi.ini starting with 'socket' and 'chmod-socket' (this is as per the instructions, but I missed it the first time).

I also had to edit /etc/nginx/sites-available/default to tell it to listen on some unused port since Apache already took 80.

I think this is all that I had to do that was different from the documentation. I hope this helps someone. In the end I'm uninstalling this because without CSV import it's unusable (how can I manually enter a hundred transactions a month from a dozen accounts?). Otherwise it's a nice looking app.