These are chat archives for locomotivecms/v3

14th
May 2015
Alex
@lyosha85
May 14 2015 02:20
Hi @did, Thank your for the prompt reply. I installed stream by running $ ../engine/bundle
Didier Lafforgue
@did
May 14 2015 09:30
@brandonmikeska not necessarily if, for instance, you already use Wagon to build your sites.
Brandon Mikeska
@brandonmikeska
May 14 2015 15:02
@did so if we created it with the Wagon App, when it's time to upgrade, it shouldn't be that big of a deal?
Didier Lafforgue
@did
May 14 2015 15:15
yep
Loïc Boutet
@loicboutet
May 14 2015 16:56
Hello Did
I have a question regarding Wagon
Didier Lafforgue
@did
May 14 2015 16:56
sure
Loïc Boutet
@loicboutet
May 14 2015 16:57
I m develloping websites with it, and my clients are editing the editable part (with the editable_* tags)
Didier Lafforgue
@did
May 14 2015 16:57
okay
Loïc Boutet
@loicboutet
May 14 2015 16:57
what happens exactly when I pull the website with the pull command and the repush the website?
does that remove their content?
Didier Lafforgue
@did
May 14 2015 16:58
if you pass the “-d” and “-f” options together to the push command, it wil erase the content
FYI, the pull command does not work very well, it has some bugs
Loïc Boutet
@loicboutet
May 14 2015 16:59
hmm I don't usually use the options, I mainly use the wagon app
except when something goes wrong
where I have more info with the command line
Didier Lafforgue
@did
May 14 2015 16:59
it’s called “Push content entries and … fields” inside WagonApp
Loïc Boutet
@loicboutet
May 14 2015 16:59
hmm ok
and if I m using the command line without options
that should not be erasing content rught?
right*
Didier Lafforgue
@did
May 14 2015 17:00
yes
Loïc Boutet
@loicboutet
May 14 2015 17:00
ok cool
so the flow I could have is to pull the website
then just oush without the "push content entries and fields" inside the wagon app
Didier Lafforgue
@did
May 14 2015 17:01
(just out of curiosity, why do you want to pull a website?)
(also, uncheck the “Push site.yml settings” checkbox)
Loïc Boutet
@loicboutet
May 14 2015 17:02
It s more a convenience thing
to have the same content locally
Didier Lafforgue
@did
May 14 2015 17:02
oh
I understand
Loïc Boutet
@loicboutet
May 14 2015 17:02
and better visualise what they did and did not
and if everything happens as I intended
and that have the side benefits
of having their content in my git
Didier Lafforgue
@did
May 14 2015 17:03
I get it
Loïc Boutet
@loicboutet
May 14 2015 17:03
so I find that nice
Didier Lafforgue
@did
May 14 2015 17:03
not sure the pull command will fit your need since it does pull also page templates too
I mean
Loïc Boutet
@loicboutet
May 14 2015 17:04
I m just worried about the odd case where they edit their content at the same time
ì m 100% doing it with wagon regarding the page template
Didier Lafforgue
@did
May 14 2015 17:04
you will end up with a lot of crappy files like the ones for the pages and snippets (especially if you developed your pages in HAML)
okay
another idea would be to use https://github.com/locomotivecms/coal
Loïc Boutet
@loicboutet
May 14 2015 17:05
yeah? I don t know this
Didier Lafforgue
@did
May 14 2015 17:05
the downside is that I’m not sure if it works with Locomotive v2
Loïc Boutet
@loicboutet
May 14 2015 17:05
ok ^^
pretty big downside since I m using locomotivehosting
what is it?
Didier Lafforgue
@did
May 14 2015 17:06
it’s the official Locomotive Ruby API client
Loïc Boutet
@loicboutet
May 14 2015 17:06
oh cool
Didier Lafforgue
@did
May 14 2015 17:07
please take a look at the documentation I wrote for it
Loïc Boutet
@loicboutet
May 14 2015 17:07
I will
Didier Lafforgue
@did
May 14 2015 17:07
thus, you could write your own pull command
Loïc Boutet
@loicboutet
May 14 2015 17:07
I see
that would be cool
having a bot saving the edited contents to git every night would be rad
Didier Lafforgue
@did
May 14 2015 17:09
actually, I made it work once for a LocomotiveHosting site but since I've heavily modified the code source of Coal, so not sure if it still works.
Loïc Boutet
@loicboutet
May 14 2015 17:09
ok I ll give it a try ^^
by the way
Didier Lafforgue
@did
May 14 2015 17:10
if you have time to spend on it to debug / improve it, I’ll help you (for sure)
Loïc Boutet
@loicboutet
May 14 2015 17:11
the error notification when you push with the wagon app
could be improved :)
Didier Lafforgue
@did
May 14 2015 17:12
I couldn’t agree more!
what do you suggest?
Loïc Boutet
@loicboutet
May 14 2015 17:12
My wife is using it (she s more an integratod profile) and she does most of the work
Didier Lafforgue
@did
May 14 2015 17:12
(awesome!)
Loïc Boutet
@loicboutet
May 14 2015 17:12
there are a lot of time when it does not say which file is a problem
while the wagon command line does
just saying the file in error would already be really helpful
Didier Lafforgue
@did
May 14 2015 17:13
oh
press Command + L
Loïc Boutet
@loicboutet
May 14 2015 17:13
for the logs?
Didier Lafforgue
@did
May 14 2015 17:13
yep
Loïc Boutet
@loicboutet
May 14 2015 17:14
even in the wagon.log
there is nothing much
Didier Lafforgue
@did
May 14 2015 17:14
Wagon.log logs the output of the serve command
The Logs window inside WagonApp logs the terminal output
Loïc Boutet
@loicboutet
May 14 2015 17:15
give me a sec
Didier Lafforgue
@did
May 14 2015 17:15
sure
Loïc Boutet
@loicboutet
May 14 2015 17:15
I ll give you an example
ok the thing is
the wagon command say group by group
and file by file
Didier Lafforgue
@did
May 14 2015 17:16
yes
Loïc Boutet
@loicboutet
May 14 2015 17:16
when it is uploaded right
what I see in the walong.log
wagon.log*
is just a {"local_path" => ["is already taken"]}
for the error
Didier Lafforgue
@did
May 14 2015 17:17
I see
Loïc Boutet
@loicboutet
May 14 2015 17:17
without any of the files
of group of giles
Didier Lafforgue
@did
May 14 2015 17:17
next time you deploy, open the Logs window
Loïc Boutet
@loicboutet
May 14 2015 17:17
groupe of files* sorry
the logs window? How do I open that?
Didier Lafforgue
@did
May 14 2015 17:18
you will see the exact same output you get when you run it from the terminal
Screen Shot 2015-05-14 at 7.18.13 PM.png
Loïc Boutet
@loicboutet
May 14 2015 17:18
oh that the Command - L right?
ok
I see
that s good to know
Didier Lafforgue
@did
May 14 2015 17:21
:-)
Loïc Boutet
@loicboutet
May 14 2015 17:22
Otherwise the wagon app is quite cool
Didier Lafforgue
@did
May 14 2015 17:22
glad to hear that!
Loïc Boutet
@loicboutet
May 14 2015 17:23
I just think the log (for locomotive) could be slightly more organized
especially for more advanced usage
but I sually finish by finding what I m looking for ^^
Didier Lafforgue
@did
May 14 2015 17:23
what’s your biggest concern about it?
Loïc Boutet
@loicboutet
May 14 2015 17:24
just generally hard to find stuff, like how to make a templatized page for content entries for example
Didier Lafforgue
@did
May 14 2015 17:24
even with the WagonApp?
in that case, we need to write a documentation because you can create a templatized page in a pretty simple way
same thing now with assocations between content types
Loïc Boutet
@loicboutet
May 14 2015 17:27
Hmm I didn t think of checking the wagon app for that
Loïc Boutet
@loicboutet
May 14 2015 17:35
I'll have to go
thx for the chat !
Didier Lafforgue
@did
May 14 2015 17:35
you’re welcome! have a good evening!
Loïc Boutet
@loicboutet
May 14 2015 17:36
If you ever are looking for people using the full stack (wagon app / wagon command line / locomotivehosting) for feedback I'll be happy to answer, we have a lot of websites which will be up on locomotivehosting soon ^^
Didier Lafforgue
@did
May 14 2015 17:37
I keep that in mind :-) thanks!
Brandon Mikeska
@brandonmikeska
May 14 2015 17:55
@did when you say refactor tests, does that just mean make better tests or use different tools? I see the task in Trello and just wanted to the process now
Didier Lafforgue
@did
May 14 2015 19:14
@brandonmikeska that’s basically using the Rspec 3 syntax
I removed this task from Trello