Deployment advice

62 views
Skip to first unread message

Sebastian Sastre

unread,
May 2, 2014, 8:45:18 AM5/2/14
to amber...@googlegroups.com
Hi guys,

Assuming it's  (>= 0.12.4) what's the advice for deploy you Amber app?

Closure compiler works?

Do we have some automation friendly stuff? something to help this cook or tools have to be made?

thanks!

Nicolas Petton

unread,
May 2, 2014, 9:11:41 AM5/2/14
to amber...@googlegroups.com

Sebastian Sastre writes:
>
> Do we have some automation friendly stuff? something to help this cook or
> tools have to be made?

It has to be made, but that should be coming into Amber soon :) In the
meantime, you'll have to do it by hand.

Nico
--
Nicolas Petton
http://nicolas-petton.fr

Sebastian Sastre

unread,
May 2, 2014, 9:17:21 AM5/2/14
to amber...@googlegroups.com
Get it.

Can we write the to-do list of the ideal steps we need to get it done?

What would you now if you have developed the app and you need to deploy this afternoon?

1. commit the package from Helios/legacy
2....
3...
4...
5. upload to server
6. profit

H. Hirzel

unread,
May 2, 2014, 9:39:50 AM5/2/14
to amber...@googlegroups.com
If it is this afternoon I would just upload the whole project folder
to the web server. This would include the 16MB or so bower_components
directory.

In a second thought I would have a look at the bower_components to
check what is really needed. Seems to be time-consuming....

On 5/2/14, Sebastian Sastre <sebastia...@gmail.com> wrote:
> Get it.
>
> Can we write the to-do list of the ideal steps we need to get it done?
>
> What would *you* now if you have developed the app and you need to deploy*
> this afternoon*?
>
> 1. commit the package from Helios/legacy
> 2....
> 3...
> 4...
> 5. upload to server
> 6. profit
>
>
>
> On Friday, May 2, 2014 10:11:41 AM UTC-3, nicolas petton wrote:
>>
>>
>> Sebastian Sastre writes:
>> >
>> > Do we have some automation friendly stuff? something to help this cook
>> or
>> > tools have to be made?
>>
>> It has to be made, but that should be coming into Amber soon :) In the
>> meantime, you'll have to do it by hand.
>>
>> Nico
>> --
>> Nicolas Petton
>> http://nicolas-petton.fr
>>
>
> --
> 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 amber-lang+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

H. Hirzel

unread,
May 2, 2014, 9:57:48 AM5/2/14
to amber...@googlegroups.com
Or just pull in amber from http://amber-lang.net/

and use an index.html like the one below.

Question: Has http://amber-lang.net/ been upgraded to 0.12.4?
Or how can I find out the version number from
http://amber-lang.net/amber/support/amber.js

No indication.

--Hannes


-------------------------------------------------------------------------------------------
A sample index.html file which pulls in Amber from http://amber-lang.net/
-------------------------------------------------------------------------------------------



<!DOCTYPE html>
<html>
<head>
<title>Amber App</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="author" content="N.N." />
<link rel="stylesheet" type="text/css" href='css/style.css' />

<script type='text/javascript'
src='http://amber-lang.net/amber/support/amber.js'></script>
<script type='text/javascript'
src='http://amber-lang.net/amber/support/requirejs/require.min.js'></script>
<script type='text/javascript'>
require(
["amber/devel"],
function (smalltalk) {
smalltalk.defaultAmdNamespace = "amber_core";
smalltalk.initialize();
}
);
</script>

</head>
<body>

<button class="huge"
onClick="require('amber_vm/smalltalk').Browser._open()">Open
browser</button>

</body>
</html>

sebastian

unread,
May 2, 2014, 10:10:06 AM5/2/14
to amber...@googlegroups.com
Thanks for your reply.

Sorry I didn’t clarify this before, I’m not talking of deploying prototypes or messing arounds or proof of concepts here.

What I need is know know what would do today for a professional product that clients pay money for.

One that should be usable from mobile with 3G for example.

So, again..

1. commit the package from Helios/legacy
2....
3...
4...
5. upload to server
6. profit

If you have something real online to show would be a great plus

Thanks!

H. Hirzel

unread,
May 2, 2014, 10:15:44 AM5/2/14
to amber...@googlegroups.com
Sebastian,

so you are talking about an all-in-one-amber.js which is minimized, an
issue we had before and where we still have problems....?

Last year I worked with r.js to string everything together and it
worked at a certain point of time with a certain version of amber.

You mentioned repeatedly that you did a manual concat of all the amber
files and it worked quite well. Is it possible to automate this?


--Hannes

sebastian

unread,
May 2, 2014, 10:26:27 AM5/2/14
to amber...@googlegroups.com




On May 2, 2014, at 11:15 AM, H. Hirzel <hannes...@gmail.com> wrote:

Sebastian,

so you are talking about an all-in-one-amber.js which is minimized, an
issue we had before and where we still have problems....?

Last year I worked with r.js to string everything together and it
worked at a certain point of time with a certain version of amber.

You mentioned repeatedly that you did a manual concat of all the amber
files and it worked quite well. Is it possible to automate this?


Good question. That’s the best idea I have so far but my point here is try to capitalize on good experiences that other amberians I assume are having.

.deploy.js isn’t there anymore in this version so I’d love to hear what others have to say

What you guys are doing for that goal?

Are you using closure compiler on the concatenated .js files? or something else? any advice evading a known pitfall?

Com on guys... this is not time to be shy, this is time to deliver real value with this

Don’t let me down, what’s your pro advice?

Johnny T

unread,
May 2, 2014, 6:25:29 PM5/2/14
to amber...@googlegroups.com
I have been working on this Amber project for a while. It's my first Single Page App (wow - there is a learning curve there), and I'm still finishing up some work on it. Over the weekend (probably Sunday) - I'll post more about my deployment process and the project in general.

ph...@highoctane.be

unread,
May 3, 2014, 3:27:22 AM5/3/14
to amber...@googlegroups.com
On Sat, May 3, 2014 at 12:25 AM, Johnny T <uberge...@gmail.com> wrote:
I have been working on this Amber project for a while. It's my first Single Page App (wow - there is a learning curve there), and I'm still finishing up some work on it. Over the weekend (probably Sunday) - I'll post more about my deployment process and the project in general.

Nice app.

I looked at the page source and man, that's a bunch of js to load.

The soundproof "whisper" is a nice idea but gets on the nerves after a while. Is that for testing or as a kind of watermark?

Phil

 

JohnnyT

On Friday, May 2, 2014 8:26:27 AM UTC-6, Sebastian Sastre wrote:




On May 2, 2014, at 11:15 AM, H. Hirzel <hannes...@gmail.com> wrote:

Sebastian,

so you are talking about an all-in-one-amber.js which is minimized, an
issue we had before and where we still have problems....?

Last year I worked with r.js to string everything together and it
worked at a certain point of time with a certain version of amber.

You mentioned repeatedly that you did a manual concat of all the amber
files and it worked quite well. Is it possible to automate this?


Good question. That’s the best idea I have so far but my point here is try to capitalize on good experiences that other amberians I assume are having.

.deploy.js isn’t there anymore in this version so I’d love to hear what others have to say

What you guys are doing for that goal?

Are you using closure compiler on the concatenated .js files? or something else? any advice evading a known pitfall?

Com on guys... this is not time to be shy, this is time to deliver real value with this

Don’t let me down, what’s your pro advice?

Joe Shirk

unread,
May 3, 2014, 5:54:08 AM5/3/14
to amber...@googlegroups.com
I don't suppose there is a drop-in webshop or a way to do a fancy brochure (like http://www.decntrl.org/)

Herby Vojčík

unread,
May 3, 2014, 6:45:36 AM5/3/14
to Sebastian Sastre, amber...@googlegroups.com

Sebastian Sastre <sebastia...@gmail.com>napísal/a:

Get it.

Can we write the to-do list of the ideal steps we need to get it done?

What would you now if you have developed the app and you need to deploy this afternoon?

Writing into your form:

1. commit the package from Helios/legacy

2. `amber config deploy`
3. `node .../r.js -o allinone.js amber.config.js`, or
3. `amber pack -o allinone.js`
4a. `git push`
4b. CI / CD gets involved
4c. Run tests


5. upload to server
6. profit

Of course, 4a and 4b can go further up and actually automate everything since 2.

I don't know if 3. is needed to build into amber, for flexibility it would just delegate to r.js (adding amber.config.js), but `amber init` precedent shows people rather use prepackaged command then use the building blocks directly as learning curve is then less steep.

Herby

sebastian

unread,
May 3, 2014, 7:14:09 PM5/3/14
to amber...@googlegroups.com
On May 2, 2014, at 7:25 PM, Johnny T <uberge...@gmail.com> wrote:

I have been working on this Amber project for a while. It's my first Single Page App (wow - there is a learning curve there), and I'm still finishing up some work on it. Over the weekend (probably Sunday) - I'll post more about my deployment process and the project in general.

First SAP? woha man, solid concept there. 

I’ve listened > 20 

Awesome content. 

Will ask you more about that in pvt.

Yeah we need to work on that learning curve.

We recently worked on putting somo CLI sugar and started to do some screencasts to ease that curve

Looking forward to hear more about it

Keep up that great work

H. Hirzel

unread,
May 8, 2014, 7:08:34 AM5/8/14
to amber...@googlegroups.com
Ludus http://bromagosa.github.io/Ludus/# uses the whole
bower_components folder in the gh-pages branch.

And in http://hhzl.github.io/Amber-ToDo-List/ I reuse the deployment
in Ludus to avoid adding the heavy bower_components folder to the
ToDo repo.

There was a minor snag using the bower_components folder with the
gh-pages branch.

gh-pages did not like the _st.js file starting with an underscore.
Adding the content to amber.js fixed the problem.

https://github.com/bromagosa/Ludus/issues/3

--Hannes
Reply all
Reply to author
Forward
0 new messages