Comments (6)
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.
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.
from fsp-deployment-guide.
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:
from fsp-deployment-guide.
I don't know if that screenshot worked so trying again:
from fsp-deployment-guide.
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.
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)
- keep getting prompted for root password when running `fab bootstrap` HOT 5
- root user creation HOT 3
- Deploy Key not being used HOT 2
- Cannot deploy using ansible HOT 9
- Fabric 1.10.2 fails with Mac OSX and python 2.7 HOT 2
- Can't get playbook to work HOT 3
- Automating Git configuration with ./deploy_prod.sh HOT 2
- dead/wrong link to David Winter's Ansible blog post
- `sudo: yes`s in `ubuntu.yml` here are not reflected in book HOT 4
- long nginx .conf file not included in repo HOT 2
- Having issues with fabfile.py HOT 1
- bootstarp HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fsp-deployment-guide.