Giter VIP home page Giter VIP logo

Comments (6)

mattmakai avatar mattmakai commented on August 22, 2024

Hey @pmesgari, first off thanks for buying the book! Sorry about that. Let's get you up and past this issue.

I'm confused on the server_name as fsa.techroomdeploy.site. That's not configured in Namecheap if the hostname is fsp. Also, what happens if you are on your server and perform a wget on localhost? Does nginx return anything? Or is nginx refusing to start?

from fsp-deployment-guide.

pmesgari avatar pmesgari commented on August 22, 2024

Hey @mattmakai thank you for the quick response.

I was just approaching the issue. So what I did is this:

  • I deleted the record I added on Namecheap completely
  • I run the ansible prod script again and this time I used the IP address of my Linode server directly in the all file for fqdn

In this way, the solution works fine! The page loads :)

But it appears it is the domain name that goes wrong. Could you give me a tip on how to configure the Advanced DNS record?

I attached two screenshots of my namecheap dashboard.
dns1
dns2

from fsp-deployment-guide.

mattmakai avatar mattmakai commented on August 22, 2024

Okay cool making progress... so you'll want your A Record for host www to be pointed to your server's IP address. Then set a URL Redirect record host @ record will be set to your https URL of your fully qualified domain. With those 2 records in place your Nginx configuration will handle the resolution for the domain name when it's properly configured. See example screenshot below for what you'd need:

image

from fsp-deployment-guide.

mattmakai avatar mattmakai commented on August 22, 2024

I don't know if that screenshot worked so trying again:
dns-record

from fsp-deployment-guide.

pmesgari avatar pmesgari commented on August 22, 2024

Hi @mattmakai
So I went through the entire book on Saturday and Sunday, I must say one of the best books I have ever read in IT, thank you for that!

I still can't make the domain name to work. I set the records as you advised, and put the www.techroomdeploy.site as the fqdn value, but to no avail :(

Meanwhile, I faced a lot of problems with another part, the supervisor. The template files you have could not work for me, whatever I tried, and then I realized it was the supervisor package itself, it has a lot of problems with Ubuntu, also the version is quite old, so bugs haven't been resolved.

Instead, I created my own template file for supervisor that I share here with you. Having your feedback would be very much appreciated.

This is what I have for wsgi

###
# Sets up and configures Supervisor which runs Green Unicorn
##
- name: create Supervisor template for the WSGI app to run
  template: src=supervisor_app.conf.j2
            dest=/etc/supervisor/conf.d/{{ app_name }}.conf
  sudo: yes

- name: stop supervisor for app
  command: supervisorctl stop {{ app_name }}
  sudo: yes

- name: pause for restart to take effect
  pause: seconds=2

- name: start supervisor for app
  command: supervisorctl start {{ app_name }}
  sudo: yes
  notify:
    - restart nginx

And this is what I have for celery

###
# Sets up and configures Supervisor for Celery and Celerybeat
##
- name: create Supervisor template for Celery to run
  template: src=supervisor_celery.conf.j2
            dest=/etc/supervisor/conf.d/{{ app_name }}_celery.conf
  sudo: yes

- name: create Supervisor template for Celerybeat to run
  template: src=supervisor_celerybeat.conf.j2
            dest=/etc/supervisor/conf.d/{{ app_name }}_celerybeat.conf
  sudo: yes

- name: stop supervisor for celery
  command: supervisorctl stop celery
  sudo: yes

- name: stop supervisor for celerybeat
  command: supervisorctl stop celerybeat
  sudo: yes

- name: pause for restart to take effect
  pause: seconds=2

- name: start supervisor for celery
  command: supervisorctl start celery
  sudo: yes

- name: start supervisor for celerybeat
  command: supervisorctl start celerybeat
  sudo: yes

from fsp-deployment-guide.

mattmakai avatar mattmakai commented on August 22, 2024

hey @pmesgari, I need more information on "a lot of problems with supervisor". Are there specific errors in the logs?

from fsp-deployment-guide.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.