These are chat archives for locomotivecms/v3

7th
Sep 2015
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 01:43
hi @did
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 07:09
Hi @did
there?
root@railcms:/home/rails/mithra# rails console production
Loading production environment (Rails 4.2.4)
2.2.1 :001 > Locomotive::Site.all.map(&:domains)
=> [[], []]
2.2.1 :002 >
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 09:38
Hi @did
please let me know, if you are around
Didier Lafforgue
@did
Sep 07 2015 11:41
I’m around
looks like you didn’t add a domain name to your site
Screen Shot 2015-09-07 at 1.42.26 PM.png
(this is an example)
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 12:09
hi
@did
i have added
Didier Lafforgue
@did
Sep 07 2015 12:10
if Locomotive::Site.all.map(&:domains)
returns empty arrays
that’s no good
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 12:14
Screen Shot 2015-09-07 at 5.43.27 pm.png
its there.. but not sure why its returing empty values
please check the above screenshot
wait did
give me a sec
@did
give me a sec
added
now working fine..
Didier Lafforgue
@did
Sep 07 2015 12:16
:-)
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 12:16
how to login to CMS ?
i assign the domain name to the site..
if i want to login to CMS, how to do that ?
Didier Lafforgue
@did
Sep 07 2015 12:17
go to the default url of your platform
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 12:21
you mean domainname/locomotive/sing_in
?
default url and the site url both are same
Didier Lafforgue
@did
Sep 07 2015 12:23
yep
oh okay
first, you need to understand that locomotive is for multi-sites purpose
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 12:24
yes.. my question is for multi-sites
:-)
Didier Lafforgue
@did
Sep 07 2015 12:24
okay :-)
what’s in your locomotive.rb config file?
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 12:25
yes..one sec..
Didier Lafforgue
@did
Sep 07 2015 12:25
do you have something like:
config.host = “….”
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 12:25
yes there s like that..
one sec
i am loggin to the server
Didier Lafforgue
@did
Sep 07 2015 12:26
config.host = “yourdomainename"
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 12:27
config.host = 'mithra.io'
its already there
but for multisite enabling..
do i need to change any thing in the code ?
Didier Lafforgue
@did
Sep 07 2015 12:30
nope
mithra.io/locomotive/sign_in => log in to the platform
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 12:30
yes you are correct..
Didier Lafforgue
@did
Sep 07 2015 12:31
then you should see all your sites
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 12:31
yes i can..
but for multisite. i can create a sub-domain and add CNAME in my dns entry
Didier Lafforgue
@did
Sep 07 2015 12:31
for each site, you can assign a different domain name as long as you set the right CNAME or A information for that domain name
you mean
myothersite.mithra.io?
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 12:32
yup
Didier Lafforgue
@did
Sep 07 2015 12:33
just add the correct DNS entry and you’re good to go
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 12:34
yup.. i am working on that
one more doubt..
i could not find any option in the CMS for removing the site..
Didier Lafforgue
@did
Sep 07 2015 12:34
go to “General Settings”, click on the "Advanced" tab
at the bottom left corner of the main section, you’ll see the “remove” button
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 12:35
Destroy this site
?
Didier Lafforgue
@did
Sep 07 2015 12:37
yep
wait
you can’t go back after this, you will lose all the data of that site
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 12:38
once i clicked on “Destroy this site” , the corresponding site will get deleted ?
Didier Lafforgue
@did
Sep 07 2015 12:40
yes
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 12:41
okay thanks..
i m working on DNS part.
will update you , if there is any issues
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 13:02
hi @did
Didier Lafforgue
@did
Sep 07 2015 13:03
hey!
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 13:04
while creating CNAME
Didier Lafforgue
@did
Sep 07 2015 13:04
yes?
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 13:04
lets say example.com is the domainname
to create CNAME
dev01.example.com is the subdomain
while creating CNAME
*.dev01
dev01.example.com.
am i rigth ?
Didier Lafforgue
@did
Sep 07 2015 13:05
nope
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 13:06
okay.. could you please help on this ?
Didier Lafforgue
@did
Sep 07 2015 13:06
dev01 (subdomain) -> example.com
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 13:06
yes
Didier Lafforgue
@did
Sep 07 2015 13:06
I strongly recommend you to use dnsimple.com
that’s not free I know but it’s a great service
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 13:07
i will use digitalocean DNS
is this not good ?
Didier Lafforgue
@did
Sep 07 2015 13:07
no idea :-)
first time I hear that DO has a DNS service
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 13:07
okay..
could you please let me know the format ?
i will try from my end
Didier Lafforgue
@did
Sep 07 2015 13:08
I’ve no idea :-)
hold on :-)
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 13:09
ok no issues. i will take care..
thanks @did
Didier Lafforgue
@did
Sep 07 2015 13:09
dev01 10800 IN CNAME example.com.
another example
myothersite 10800 IN CNAME mithra.io
if you ping, myothersite.mithra.io, you will get the IP of the mithra.io domain name and therefore your server IP
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 13:11
ok.. i understood @did
i am going to change the create the subdomain from the dns provider panel
Didier Lafforgue
@did
Sep 07 2015 13:12
okay
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 13:24
subdomain also working..
thanks..
Didier Lafforgue
@did
Sep 07 2015 13:24
that’s great!
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 13:24
in digitalocean, we can create our own A record etc
for example example.com is the main domain
if i want to create subdomain like dev01.example.com
go to CNAME
given the name as dev01
and hostname as example.com.
thats it..
Didier Lafforgue
@did
Sep 07 2015 13:25
that’s great!
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 13:26
thanks @did
Didier Lafforgue
@did
Sep 07 2015 13:26
you’re welcome!
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 13:26
i will come up with doubts later..
:-)
Didier Lafforgue
@did
Sep 07 2015 13:26
ah ah you bet!
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 13:27
(y)
:-)
@did
Didier Lafforgue
@did
Sep 07 2015 13:29
yes?
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 13:29
how to use the email funtions in the site ?
enable email features
Didier Lafforgue
@did
Sep 07 2015 13:30
do you have a precise example of what you want to do with emails?
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 13:30
there is an contact me option
when the users fill in the details, their details has to mail to the owner of the site
Didier Lafforgue
@did
Sep 07 2015 13:31
you’ve got an example here:
more information here
(outdated but you will get the idea)
yuvarajan1989k
@yuvarajan1989k
Sep 07 2015 13:33
okay. let me go through it..