404 amber_vm/_st in Github Pages

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

404 amber_vm/_st in Github Pages

PabloEstefo
Hi folks,

I have just done the migration from amber 0.11 to 0.12.2 which is running correctly in localhost.

The thing is that I just uploaded the files to the github repo and then to the gh-pages branch to serve the files in http://pestefo.github.com/roamber but the file /path_to_amber/support/_st.js not get loaded ( 404 error).


Did I skip a step?

Thanks!

Pablo

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: 404 amber_vm/_st in Github Pages

Herby Vojčík


Pablo Estefó wrote:
> Hi folks,
>
> I have just done the migration from amber 0.11 to 0.12.2 which is
> running correctly in localhost.
>
> The thing is that I just uploaded the files to the github repo and
> then to the gh-pages branch to serve the files in
> http://pestefo.github.com/roamber but the file
> /path_to_amber/support/_st.js not get loaded ( 404 error).

First thing, if possible, you should separate project and amber and include amber as a dependency. Mixing project code into amber directory is not the recommended layout.

But that is not the problem of your code. In Chrome debugger Network tab, all other components of the project were successfully loaded, except _st.js which returns 404.

Do you have the file there? If yes, isn't github.io treating files beginning with underscore specially?

> Did I skip a step?
>
> Thanks!
>
> Pablo

Herby

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: 404 amber_vm/_st in Github Pages

PabloEstefo
Hi Herby,

On Jan 16, 2014, at 20:12, Herby Vojčík <[hidden email]> wrote:



Pablo Estefó wrote:
Hi folks,

I have just done the migration from amber 0.11 to 0.12.2 which is running correctly in localhost.

The thing is that I just uploaded the files to the github repo and then to the gh-pages branch to serve the files in http://pestefo.github.com/roamber but the file /path_to_amber/support/_st.js not get loaded ( 404 error).

First thing, if possible, you should separate project and amber and include amber as a dependency. Mixing project code into amber directory is not the recommended layout.

Done ;)


But that is not the problem of your code. In Chrome debugger Network tab, all other components of the project were successfully loaded, except _st.js which returns 404.

Do you have the file there? If yes, isn't github.io treating files beginning with underscore specially?

The file is there.

That could be a reason. Actually this page says that files with underscore will not be served then using Jekyll (blog engine) which, besides I am not using it, could be the reason.

If that were the reason and I rename it… which files should I see to update the filename reference.

Cheers,
Pablo


Did I skip a step?

Thanks!

Pablo

Herby

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: 404 amber_vm/_st in Github Pages

Herby Vojčík


Pablo Estefó wrote:

> Hi Herby,
>
> On Jan 16, 2014, at 20:12, Herby Vojčík <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>>
>>
>> Pablo Estefó wrote:
>>> Hi folks,
>>>
>>> I have just done the migration from amber 0.11 to 0.12.2 which is
>>> running correctly in localhost.
>>>
>>> The thing is that I just uploaded the files to the github repo and
>>> then to the gh-pages branch to serve the files in
>>> http://pestefo.github.com/roamber but the file
>>> /path_to_amber/support/_st.js not get loaded ( 404 error).
>>
>> First thing, if possible, you should separate project and amber and
>> include amber as a dependency. Mixing project code into amber
>> directory is not the recommended layout.
>
> Done ;)
>
>>
>> But that is not the problem of your code. In Chrome debugger Network
>> tab, all other components of the project were successfully loaded,
>> except _st.js which returns 404.
>>
>> Do you have the file there? If yes, isn't github.io treating files
>> beginning with underscore specially?
>
> The file is there.
>
> That could be a reason. Actually this page
> <https://help.github.com/articles/files-that-start-with-an-underscore-are-missing>
> says that files with underscore will not be served then using Jekyll
> (blog engine) which, besides I am not using it, could be the reason.
>
> If that were the reason and I rename it… which files should I see to
> update the filename reference.

Don't do it.

You do the mappings in index.html anyway, for your own namespace.
Just add mapping for "amber_vm/_st" (you can map file, not just
directory) and point it to the renamed file, _without_ .js extension.

Herby

>
> Cheers,
> Pablo
>
>>
>>> Did I skip a step?
>>>
>>> Thanks!
>>>
>>> Pablo
>>
>> Herby
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "amber-lang" group.
>> To unsubscribe from this group and stop receiving emails from it, send
>> an email to [hidden email]
>> <mailto:[hidden email]>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>
> --
> You received this message because you are subscribed to the Google
> Groups "amber-lang" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [hidden email].
> For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: 404 amber_vm/_st in Github Pages

Herby Vojčík
In reply to this post by PabloEstefo


Pablo Estefó wrote:
> That could be a reason. Actually this page
> <https://help.github.com/articles/files-that-start-with-an-underscore-are-missing>
> says that files with underscore will not be served then using Jekyll
> (blog engine) which, besides I am not using it, could be the reason.

As for this, maybe it is on by default, you are using it, you just don't
know you do; and if serving plain file, it just serves it as is. Maybe
it is just matter of switching it off in some settings.

Herby

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: 404 amber_vm/_st in Github Pages

PabloEstefo

On Jan 17, 2014, at 11:36, Herby Vojčík <[hidden email]> wrote:

>
>
> Pablo Estefó wrote:
>> That could be a reason. Actually this page
>> <https://help.github.com/articles/files-that-start-with-an-underscore-are-missing>
>> says that files with underscore will not be served then using Jekyll
>> (blog engine) which, besides I am not using it, could be the reason.
>
> As for this, maybe it is on by default, you are using it, you just don't know you do; and if serving plain file, it just serves it as is. Maybe it is just matter of switching it off in some settings.

That worked.

I created a _config.yml with contains:
--
include: ['vendor/amber/support/_st.js']


And added an empty file called .nojekyll at /vendor/amber/support/ (the directory that contains _st.js )

After waiting some minutes it worked.

Thanks a lot Herby.

Is there any documentation about how to serve an amber project using github pages? If not I could write one.

Cheers,
Pablo

>
> Herby
>
> --
> You received this message because you are subscribed to the Google Groups "amber-lang" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: 404 amber_vm/_st in Github Pages

Herby Vojčík


Pablo Estefó wrote:

> On Jan 17, 2014, at 11:36, Herby Vojčík<[hidden email]>  wrote:
>
>>
>> Pablo Estefó wrote:
>>> That could be a reason. Actually this page
>>> <https://help.github.com/articles/files-that-start-with-an-underscore-are-missing>
>>> says that files with underscore will not be served then using Jekyll
>>> (blog engine) which, besides I am not using it, could be the reason.
>> As for this, maybe it is on by default, you are using it, you just don't know you do; and if serving plain file, it just serves it as is. Maybe it is just matter of switching it off in some settings.
>
> That worked.
>
> I created a _config.yml with contains:
> --
> include: ['vendor/amber/support/_st.js']
> —
>
> And added an empty file called .nojekyll at /vendor/amber/support/ (the directory that contains _st.js )
>
> After waiting some minutes it worked.
>
> Thanks a lot Herby.

Np.

I have looked at it and saw that it already works.

I think that now you don't need the amber_vm/_st mapping any more in
index.html.

Also, I though about including amber as a bower dependency, not a git
dependency, if you need to use it anyway to get dependencies of amber
itself.

> Is there any documentation about how to serve an amber project using github pages? If not I could write one.

Well, tha fact that underscore-started files are treated specially,
maybe an issue could be added to rename it.

> Cheers,
> Pablo
>
>> Herby
>>
>> --
>> You received this message because you are subscribed to the Google Groups "amber-lang" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
>> For more options, visit https://groups.google.com/groups/opt_out.
>

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.