Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8177973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:39:18+00:00 2026-06-06T23:39:18+00:00

I am trying to manage Yast appmod. So: yaws.conf: <server localhost> port = 8005

  • 0

I am trying to manage Yast appmod. So:
yaws.conf:

<server localhost>
   port = 8005
   listen = 127.0.0.1
   docroot = /home/ziel/www/CatsScript/src/
   appmods = </, myappmod>
</server> 

from http://yaws.hyber.org/appmods.yaws myappmod.erl:

-module(myappmod2).
-author('klacke@bluetail.com').

-include("/home/ziel/erlang/yaws/include/yaws_api.hrl").
-compile(export_all).

box(Str) ->
    {'div',[{class,"box"}],
    {pre,[],Str}}.

out(A) ->
     {ehtml,
     [{p,[],
     box(io_lib:format("A#arg.appmoddata = ~p~n"
                       "A#arg.appmod_prepath = ~p~n"
                       "A#arg.querydata = ~p~n",
                       [A#arg.appmoddata,
                        A#arg.appmod_prepath,
                        A#arg.querydata]))}]}.

And it worked when I used it first time. But later when I changed something in myappmod.erl nothing changed in response from server. Than I deleted myappmod.erl, but it still works. What should I do to make some changes?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T23:39:22+00:00Added an answer on June 6, 2026 at 11:39 pm

    When you start Yaws, it eventually references your myappmod2 module, causing the Erlang runtime to load the beam file produced by compiling the module. Once it’s loaded, it stays loaded until you either forcibly reload it, such as through the interactive Erlang shell, or by stopping and restarting Yaws and the Erlang runtime. Simply recompiling the module from the outside does not reload it.

    If you run Yaws interactively via yaws -i, you can hit “enter” once it starts up to get an interactive Erlang shell. If you change an appmod module and recompile it, make sure you copy the new beam file over the old one and then simply type l(myappmod2). in the interactive shell and then hit enter to reload the myappmod2 module (and don’t forget the period after the close parenthesis). That lowercase l is the Erlang shell’s load command. You could also compile the module directly in the shell using the c(myappmod2). command, which will compile and load it (assuming no compilation errors).

    If you have Yaws running non-interactively, say as a regular background daemon process, you can reload modules into it by running the following command:

    yaws --load myappmod2
    

    You can put multiple module names after the --load option if you want to load them all at once. If your Yaws instance has a specific id, make sure you also use the appropriate --id option to identify it.

    If you’re interested in auto-reloading recompiled modules, you might look into something like the reloader.erl module, which watches for recompiled modules and loads them automatically. I wouldn’t recommend it for production use, but it can be handy for development.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to manage to work a simply xhtml page with Java Server
I am trying to manage session of users after authentication with ldap. The authentication
I'm trying to realize the same as in Spring error when trying to manage
I'm trying to manually manage some geometry (spatial) columns in a rails model. When
I am trying to work out how to manage the following relationships A Store
I'm trying to figure out how to manage my event ids. Up to this
I'm trying to get Django's manage.py to run with modified settings files. I have
I am trying to install VisualSVN to manage my code with other users. In
I'm trying to use couchapp to manage my CouchDB application, but it's missing a
I'm trying to use Apache XMLRPC to manage posts at a small weblog service.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.