Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Sep 25 07:12
    bwdxbfzco commented #1537
  • Sep 17 09:43
    khanzadimahdi commented #1537
  • Sep 15 07:36
    shashibyjus opened #1539
  • Sep 05 03:13
    ryanleit commented #1415
  • Sep 04 19:10
    italomaia commented #1538
  • Sep 04 19:09
    italomaia closed #1538
  • Sep 04 19:04
    italomaia edited #1538
  • Sep 04 19:04
    italomaia edited #1538
  • Sep 04 15:29
    italomaia opened #1538
  • Aug 29 22:38
    caeril commented #1533
  • Aug 25 12:02
    bwdxbfzco opened #1537
  • Aug 23 17:41
    pdause commented #1533
  • Aug 15 21:38
    shinypb commented #1528
  • Aug 15 21:38
    shinypb commented #1528
  • Aug 05 21:49
    caeril commented #1533
  • Aug 05 14:29
    caeril commented #1533
  • Aug 03 08:59
    rahiyansafz commented #1536
  • Jul 09 22:27
    rahiyansafz commented #1536
  • Jul 08 12:23
    dingyzh commented #1189
  • Jul 04 04:08
    celong00 opened #1536
Brenden Soares
@brendensoares
instead I'd recommend trying to reproduce the results on your local machine
check Go version
what happens when you build/run the main.go?
edsoncarreon
@edsoncarreon
upon running the revel build command, it generates a tmp folder that includes the main.go and a run folder with a run.goinside.
it also generates a target folder that includes a binary file, a run.bat, and a run.sh file
Brenden Soares
@brendensoares
so AWS EB compiles the main.go when you deploy right?
last time I used EB was a rails app years ago
or do you compile the binary locally and then upload in the zip
edsoncarreon
@edsoncarreon
yes. I use the cross-compile go build function on the main.go: cd app/tmp && GOOS=linux GOARCH=amd64 go build -o ../../bin/application
then that generates a bin folder with an application binary file
Brenden Soares
@brendensoares
ok so run that binary on your local machine
edsoncarreon
@edsoncarreon
that is what I compress and deploy
Brenden Soares
@brendensoares
what happens?
edsoncarreon
@edsoncarreon
It's cannot execute binary file upon running it on my local machine.
Brenden Soares
@brendensoares
well that's odd
is it a permission issue?
sounds like a local issue
I'd help you out more, but I'm in the middle of some work with a deadline
let us know what progress you make
edsoncarreon
@edsoncarreon
Alright, thank you so much for you time. I'll keep trying it out. Cheers.
But say, if I can drop Elastic Beanstalk, is there a better way do deploy Revel applications to AWS? Any suggestions?
Thanks.
Brenden Soares
@brendensoares
straight to an EC2
with docker as a bonus?
AWS has a few options for more streamlined app hosting
I think they have a serverless option
which is very similar to EB from what I understand
edsoncarreon
@edsoncarreon
I'll look into those. Thank you so much for your help.
Brenden Soares
@brendensoares
you're welcome
MoFeng
@mofengme
Is the project being maintained ?
Brenden Soares
@brendensoares
sort of
BaliramChipmonk
@BaliramChipmonk

// Cookie returns an http.Cookie containing the signed session.
func (s Session) Cookie() *http.Cookie {
var sessionValue string
ts := s.getExpiration()
s[TIMESTAMP_KEY] = getSessionExpirationCookie(ts)
for key, value := range s {
if strings.ContainsAny(key, ":\x00") {
panic("Session keys may not have colons or null bytes")
}
if strings.Contains(value, "\x00") {
panic("Session values may not have null bytes")
}
sessionValue += "\x00" + key + ":" + value + "\x00"
}

sessionData := url.QueryEscape(sessionValue)
return &http.Cookie{
    Name:     CookiePrefix + "_SESSION",
    Value:    Sign(sessionData) + "-" + sessionData,
    Path:     "/",
    HttpOnly: CookieHttpOnly,
    Secure:   CookieSecure,
    Expires:  ts.UTC(),
}

}

i want to store as in directory path: "/directory/" but page will not load.a
when i set the directory name in routes then it will work fine.
anyone please help this point..
Caeril the Cowardly
@caeril
Does anybody know if revel/revel#1533 will be resolved soon? Nobody new to revel, who doesn't already have myesui, can do anything.
This used to be a minor annoyance, but we lost our previous dependencies and now we can't build anything for production anymore.
Plenty of other projects have replaced this missing dependency ( e.g. ProtonMail/proton-bridge#163 and snowplow/snowplow-golang-tracker#59 ), is there no more maintenance on revel these days?
Caeril the Cowardly
@caeril
Nevermind, just forked it and fixed it myself.
bwdxbfzco
@bwdxbfzco
hi

I created the jobs using the revel documentation, it works well when you manually run the like

revel run <app>

BUT as soon as you build the revel app and then try to execute using run.sh, jobs module is not available including the job status page. This page I have tested on localhost, 127.0.0.1, but all gives 404 error.

has anyone encountered similar issue ?

Paul
@ptman:kapsi.fi
[m]
hmm...
bwdxbfzco
@bwdxbfzco
I tried with sample application same issue comes with sample application
Italo Maia
@italomaia
revel quickstart is failing to compile; ERROR 16:19:25 harness.go:239: Build detected an error error="Go Compilation Error (in ../../go/pkg/mod/github.com/revel/revel@v1.0.0/cache/memcached.go:11): no required module provides package github.com/bradfitz/gomemcache/memcache; to add it:"
Paul
@ptman:kapsi.fi
[m]
Paul
@ptman:kapsi.fi
[m]
there are quite a few PRs and issues that need reviewing
Paul
@ptman:kapsi.fi
[m]
hacktoberfest is coming
there are open PRs
what is lacking is maintainers with time to review and merge PRs