Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run vnstat-dashboard locally? #48

Open
bernid opened this issue Nov 1, 2020 · 1 comment
Open

Run vnstat-dashboard locally? #48

bernid opened this issue Nov 1, 2020 · 1 comment

Comments

@bernid
Copy link

bernid commented Nov 1, 2020

Hi,
I'm trying running vnstat-dashboard locally on my Ubuntu 10.20 machine.
Unfortunately I have an issue:

ela@akacja:/var/www/vnstat$ composer install
Composer could not find a composer.json file in /var/www/vnstat
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section

So I use command line installation from https://getcomposer.org/download/:

ela@akacja:/var/www/vnstat$ sudo php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
ela@akacja:/var/www/vnstat$ sudo php -r "if (hash_file('sha384', 'composer-setup.php') === 'c31c1e292ad7be5f49291169c0ac8f683499edddcfd4e42232982d0fd193004208a58ff6f353fde0012d35fdd72bc394') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
Installer verified
ela@akacja:/var/www/vnstat$ sudo php composer-setup.php
All settings correct for using Composer
Downloading...

Composer (version 2.0.4) successfully installed to: /var/www/vnstat/composer.phar
Use it: php composer.phar

ela@akacja:/var/www/vnstat$ sudo php -r "unlink('composer-setup.php');"
ela@akacja:/var/www/vnstat$

But after that when I run 'composer install' still receive: 'Composer could not find a composer.json file in /var/www/vnstat'
What should I do to move on?
Thanks in advance.

@kdkasad
Copy link

kdkasad commented Feb 27, 2021

composer install must be run in the app/ subdirectory.

For example:

$ git clone https://github.com/alexandermarston/vnstat-dashboard.git
$ cd vnstat-dashboard/app
$ composer install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants