Testing under free plan?

5 views
Skip to first unread message

Chris "Jesdisciple"

unread,
Feb 9, 2011, 4:46:57 PM2/9/11
to Erbix
I cannot find any way to view hosted files as HTML under the free
plan. Is there a way, or is the free plan basically a hibernation
mode for dead/stable projects?

Mihai Roman

unread,
Feb 9, 2011, 5:43:32 PM2/9/11
to Erbix
Hi Chris,

I believe you are looking for this:
http://erbix.com/tutorials/statics

You can find the code by installing the tutorial app into your
account:
https://secure.erbix.com/marketplace/application?id=1002

Basically you need to write a small server-side JavaScript JSGI
function to serve your static files (html, images, etc).
http://www.erbix.com/documentation/js-reference/jsgi/

Do you think a built-in static files feature would be useful?

We are preparing a series of releases in the next few days. By the end
of February 2011, you can expect important changes
in usability, documentation, built in libraries and more apps on the
Marketplace.

Regards,
Mihai Roman, Erbix Team

On Feb 9, 11:46 pm, "Chris \"Jesdisciple\"" <jesdisci...@gmail.com>
wrote:

Chris "Jesdisciple"

unread,
Feb 10, 2011, 8:06:10 PM2/10/11
to Erbix
Mihai,

Yes, actually I think built-in static files are essential to a host.
I never would have imagined needing to program that feature myself
unless I were actually writing a server; it feels like I'm undoing
your features!

I have one more question: Are pages publicly viewable by default or
does that require anything special?

Thanks for your time,
Chris

On Feb 9, 4:43 pm, Mihai Roman <m...@erbix.com> wrote:
> Hi Chris,
>
> I believe you are looking for this:http://erbix.com/tutorials/statics
>
> You can find the code by installing the tutorial app into your
> account:https://secure.erbix.com/marketplace/application?id=1002
>
> Basically you need to write a small server-side JavaScript JSGI
> function to serve your static files (html, images, etc).http://www.erbix.com/documentation/js-reference/jsgi/

Chris

unread,
Feb 10, 2011, 8:17:20 PM2/10/11
to Erbix
Hi again Mihai,

I'm afraid that wasn't /quite/ my issue, but it was close enough that I thought it was when I responded.

All content gets output by JavaScript, okay.  But what URL do I use to access that content?  I have a site with a domain, but accessing that domain yields a 404-ish error.  I understand from the documentation that domains are a paid feature; do I use a subdirectory of the main Erbix site then?

Thanks again,
Chris

P.S. Thanks for the service; I think it's a great idea.

Mihai Roman

unread,
Feb 11, 2011, 2:33:14 AM2/11/11
to Erbix
Hi Chris,

Here's an answer list that I hope will help you:

1. Free vs Paid account ( https://secure.erbix.com/pricing )
<your-chosen-subdomain>.erbix.com domain names are available in all
plans. Premium and Standard accounts can register their custom <your-
domain-name>.com.

2. Site, Domain, App
Site -> a group of domains that serve the same content
Domain -> e.g. jesdisciple.erbix.com ; To serve different content on
another domain you need to create another Site (domain group)
App -> A group of three elements
a) URL prefix (e.g. /erbix-tutorials; this means your URL for that
app is http://jesdisciple.erbix.com/erbix-tutorials )
b) JavaScript module (e.g. installedApps/tutorials/main.js); A
JavaScript module (*.js file) that exports a JSGI function (eg: var
myfunc = export.myfunc = function(request) {....}"); details about
exporting and using exported functions later)
c) The JSGI function name exported by the module at b) (e.g. main)

When requesting http://jesdisciple.erbix.com/erbix-tutorials, Erbix
loads installedApps/tutorials/main.js and calls "main" function to
render the pages.

The function can have any name, not just "main"

3. Public/Private Pages
There are no private URLs on your Erbix subdomain for now. This means
that all URL prefixes to your domain that are listed in the apps list
are publicly accessible.

All your files are private. Files in your account cannot be accessed
publicly in any way unless you serve them with a JSGI function.

You can protect your private URLs/pages by restricting them with a
login layer.

4. Stay tuned, give feedback and make special requests
Very soon the My Account section will change. We are going to
streamline apps and domain management.

We need your feedback in order to improve the usability, add features,
libraries, apps you may need. We are testing and preparing a lot of
new features (email API, http client, libraries, apps, etc). The
feature you need may be released quite soon.

Contact us directly with special requests (help with starting up with
Erbix, free custom domain names, etc).

Thanks,
Mihai Roman, Erbix Team


On Feb 11, 3:17 am, Chris <jesdisci...@gmail.com> wrote:
> Hi again Mihai,
>
> I'm afraid that wasn't /quite/ my issue, but it was close enough that I
> thought it was when I responded.
>
> All content gets output by JavaScript, okay.  But what URL do I use to
> access that content?  I have a site with a domain, but accessing that domain
> yields a 404-ish error.  I understand from the documentation that domains
> are a paid feature; do I use a subdirectory of the main Erbix site then?
>
> Thanks again,
> Chris
>
> P.S. Thanks for the service; I think it's a great idea.
>
> On Thu, Feb 10, 2011 at 7:06 PM, Chris "Jesdisciple"
> <jesdisci...@gmail.com>wrote:

Vlad Dascalu

unread,
Feb 11, 2011, 2:51:21 AM2/11/11
to Erbix
Hey Chris,

To serve content on your http://jesdisciple.erbix.com/ domain you need
to create a .js file in the "Files" section and declare there a JS
entry function that processes your requests:

exports.main = function(request) {
return {
status: 200,
headers: {
"Content-Type": "text/plain"
},
body: [ (request.pathInfo != '/') ? "Hello!" : "Hello main
page!" ]
};
};

and then in the "Sites" tab, associate a desired path on your domain
(jesdisciple.erbix.com/desired-path/) with this function:

URL Path prefix: /desired-path
Module File Path: the path to your .js file written in the Files tab
JS Function: main (or something else if you wrote it differently)

Hope this helps - let us know how things would have been more clear
for you so that we can change the UI in that way.

Thanks,
Vlad

On Feb 11, 3:17 am, Chris <jesdisci...@gmail.com> wrote:
> Hi again Mihai,
>
> I'm afraid that wasn't /quite/ my issue, but it was close enough that I
> thought it was when I responded.
>
> All content gets output by JavaScript, okay.  But what URL do I use to
> access that content?  I have a site with a domain, but accessing that domain
> yields a 404-ish error.  I understand from the documentation that domains
> are a paid feature; do I use a subdirectory of the main Erbix site then?
>
> Thanks again,
> Chris
>
> P.S. Thanks for the service; I think it's a great idea.
>
> On Thu, Feb 10, 2011 at 7:06 PM, Chris "Jesdisciple"
> <jesdisci...@gmail.com>wrote:

Chris

unread,
Feb 12, 2011, 2:55:07 PM2/12/11
to er...@googlegroups.com
Mihai, Vlad:

Alright, thanks.  I have a feeling I'll be referring to this conversation a lot while I get set up.

In ALL things, strive for ><>,
Chris
Reply all
Reply to author
Forward
0 new messages