Deploying an amber application

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

Deploying an amber application

abergel
Hi!

I've just completed my first first Amber application, which is my web page. Proud of it :-)

Currently, it is in on my laptop, in amber/projects/mywebpage

To put it online, I've created amber-deploy.js [1].
I copied this amber-deploy.js file into amber/projects/mywebpage/js
and have changed the index.html to:
-=-=-=-=-=-=-=-=-=
   <script src="./js/amber-deploy.js" type="text/javascript"></script>
    <script type="text/javascript">
loadAmber({
    files: ['AlexWebPage.js', 'AlexWebPage-ObjectModel.js', 'AlexWebPage-Tests.\
js' ],
    prefix: 'js',    // before was 'projects/mywebpage/js'
-=-=-=-=-=-=-=-=-=

I then copied all the content of mywebpage on the server, but it seems it does not work.
http://bergel.eu/mywebpage/index.html should have shown the application I am very proud of.

When I put <script src="./js/amber-deploy.js" type="text/javascript"></script> in the html, I cannot locally view the webpage. I am probably doing something wrong, but I can't figure out what exactly.

Help greatly appreciated.

Cheers,
Alexandre


[1] http://stackoverflow.com/questions/9911809/amber-smalltalk-creating-a-single-js-file-for-deployment



--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





Reply | Threaded
Open this post in threaded view
|

Re: Deploying an amber application

Nicolas Petton
Hi!

You should do it this way:

<script src="js/amber.js" type="text/javascript"></script>
<script type="text/javascript"> loadAmber({..., deploy: true})</scrip
Cheers,
Nico

On Apr 18, 2012, at 5:23 PM, Alexandre Bergel wrote:

Hi!

I've just completed my first first Amber application, which is my web page. Proud of it :-)

Currently, it is in on my laptop, in amber/projects/mywebpage

To put it online, I've created amber-deploy.js [1].
I copied this amber-deploy.js file into amber/projects/mywebpage/js
and have changed the index.html to:
-=-=-=-=-=-=-=-=-=
  <script src="./js/amber-deploy.js" type="text/javascript"></script>
   <script type="text/javascript">
loadAmber({
   files: ['AlexWebPage.js', 'AlexWebPage-ObjectModel.js', 'AlexWebPage-Tests.\
js' ],
   prefix: 'js',    // before was 'projects/mywebpage/js'
-=-=-=-=-=-=-=-=-=

I then copied all the content of mywebpage on the server, but it seems it does not work.
http://bergel.eu/mywebpage/index.html should have shown the application I am very proud of.

When I put <script src="./js/amber-deploy.js" type="text/javascript"></script> in the html, I cannot locally view the webpage. I am probably doing something wrong, but I can't figure out what exactly.

Help greatly appreciated.

Cheers,
Alexandre


[1] http://stackoverflow.com/questions/9911809/amber-smalltalk-creating-a-single-js-file-for-deployment



--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.