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

Installation Error #52

Closed
SamGreenwood1 opened this issue Oct 24, 2022 · 22 comments
Closed

Installation Error #52

SamGreenwood1 opened this issue Oct 24, 2022 · 22 comments
Assignees
Labels
dependencies Pull requests that update a dependency file help wanted

Comments

@SamGreenwood1
Copy link

image
image

@tbaltrushaitis tbaltrushaitis self-assigned this Oct 25, 2022
@tbaltrushaitis tbaltrushaitis added help wanted dependencies Pull requests that update a dependency file labels Oct 25, 2022
@tbaltrushaitis
Copy link
Owner

Hi @SamGreenwood1!

Looks like you need to run make clean && make setup.
Also you could run npm i

Hope this helps!

@SamGreenwood1
Copy link
Author

SamGreenwood1 commented Oct 28, 2022

I tried that a number of times.
Is there anything I have to do to configure nginx properly? At this point I get the nginx landing page when I goto the server's IP.
Here's the latest log file: https://pastebin.com/EiYWUKCX

@SamGreenwood1
Copy link
Author

Could you post more granular on how to install it properly?

@tbaltrushaitis
Copy link
Owner

tbaltrushaitis commented Oct 28, 2022

@SamGreenwood1 ,

I've look into your log file and from the line below

error command sh -c figlet-toilet -t -f small -F border 'NPM: DEPLOY'; gulp deploy --color

I can conclude that you have not yet installed dependency figlet-toilet and/or gulp.
So as I wrote before, you need to run make clean and make setup. Or install them manually with
sudo apt-get -y install figlet toilet toilet-fonts (this line can be found in Makefile)

Hope this helps!

@SamGreenwood1
Copy link
Author

image

@tbaltrushaitis
Copy link
Owner

@SamGreenwood1 ,

perfect!

Now let the party installation begins!

@SamGreenwood1
Copy link
Author

It still fails

@SamGreenwood1
Copy link
Author

image

@SamGreenwood1
Copy link
Author

nginx also seems to be broken.
image

@SamGreenwood1
Copy link
Author

nginx config is missing how do ou suggest I fix it?

@SamGreenwood1
Copy link
Author

@tbaltrushaitis gonna try installing it on another server. When installing gulp do I need to follow all the steps in the docs since there's already a gulp file?

@SamGreenwood1
Copy link
Author

setup, built, and deployed successfully on the new server but when I go to the server's IP, I still get the Nginx splash page.

@tbaltrushaitis
Copy link
Owner

@tbaltrushaitis gonna try installing it on another server. When installing gulp do I need to follow all the steps in the docs since there's already a gulp file?

You just need to have gulp installed globally or local.

@tbaltrushaitis
Copy link
Owner

tbaltrushaitis commented Nov 3, 2022

setup, built, and deployed successfully on the new server but when I go to the server's IP, I still get the Nginx splash page.

Ahh, cool!
Describing of how to configure nginx to serve from web directories is out of scope for this repo.
But I can suggest that you need to configure virtual host for CV inside of nginx. Btw, here you can find an example ;-)

@SamGreenwood1
Copy link
Author

SamGreenwood1 commented Nov 3, 2022

image

@tbaltrushaitis gonna try installing it on another server. When installing gulp do I need to follow all the steps in the docs since there's already a gulp file?

You just need to have gulp installed globally or local.

both

setup, built, and deployed successfully on the new server but when I go to the server's IP, I still get the Nginx splash page.

Ahh, cool! Describing of how to configure nginx to serve from web directories is out of scope for this repo. But I can suggest that you need to configure virtual host for CV inside of nginx. Btw, here you can find an example ;-)

Does Nginx need to be globally installed?

@tbaltrushaitis
Copy link
Owner

tbaltrushaitis commented Nov 3, 2022

Does Nginx need to be globally installed?

Nginx is not part of node/npm. It should be installed as a service in your OS.

@tbaltrushaitis
Copy link
Owner

Closing as reporter confirmed issue resolved for him.

@SamGreenwood1
Copy link
Author

It deploys successfully but the webpage errors out. What should be in /var/www/html?

@SamGreenwood1
Copy link
Author

SamGreenwood1 commented Nov 3, 2022

@tbaltrushaitis I noticed that there's a reference to /var/www/html/cv.git/webroot in ~/cv/etc/nginx/sites-available/010-cv but, that file doesn't exist on my server. Is cv.git supposed to be a link to the cv directory?

2:37 PM ET: just tried that it didn't help. I realized that there's an ssl error when I try to access it over HTTPS. are your certs in the repo?

@tbaltrushaitis
Copy link
Owner

@tbaltrushaitis I noticed that there's a reference to /var/www/html/cv.git/webroot in ~/cv/etc/nginx/sites-available/010-cv but, that file doesn't exist on my server. Is cv.git supposed to be a link to the cv directory?

In my configuration cv directory is /var/www/html/cv.git and nginx pointed ti webroot dir inside of it (as Make build project distro from sources into it).

2:37 PM ET: just tried that it didn't help. I realized that there's an ssl error when I try to access it over HTTPS. are your certs in the repo?

You should setup certs by your own at your server (e.g. with certbot). They should never be committed into git repo.

@SamGreenwood1
Copy link
Author

so the

@tbaltrushaitis I noticed that there's a reference to /var/www/html/cv.git/webroot in ~/cv/etc/nginx/sites-available/010-cv but, that file doesn't exist on my server. Is cv.git supposed to be a link to the cv directory?

In my configuration cv directory is /var/www/html/cv.git and nginx pointed ti webroot dir inside of it (as Make build project distro from sources into it).

cv directory itself is in /var/www/html?

@tbaltrushaitis
Copy link
Owner

so the

@tbaltrushaitis I noticed that there's a reference to /var/www/html/cv.git/webroot in ~/cv/etc/nginx/sites-available/010-cv but, that file doesn't exist on my server. Is cv.git supposed to be a link to the cv directory?

In my configuration cv directory is /var/www/html/cv.git and nginx pointed ti webroot dir inside of it (as Make build project distro from sources into it).

cv directory itself is in /var/www/html?

Yep. But its not the rule. It can be anywhere you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file help wanted
Projects
None yet
Development

No branches or pull requests

2 participants