Skip to main content

Comments

2 comments

  • robwebdev
    SOLUTION: this worked for me: the problem was I needed to make some changes to my .htaccess file in my public_html directory. Note that it is a hidden file so I had to enable "show hidden files" in the settings for the public_html directory so that I could edit this file. here is what I put in my .htaccess file: RewriteEngine On RewriteRule ^$ http://127.0.0.1:XXXXX/ [P,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ http://127.0.0.1:XXXXX/$1 [P,L] where "XXXXX" is the port number, for example 3001. Note also that I had already gone through the process of registering my app and setting, via the user interface, the environment variable of PORT to 3001 Hope this helps, and the the original cpanel tutorial should have been clear about these things, let us know, give us some hints, we're naturally going to be wanting to see it live on our site ... it's not just in development in this context at all: we're hosting and using cpanel!
    0
  • cPRex Jurassic Moderator
    Hey there! I'm glad you were able to come up with a workaround. We do mention that Apache module is necessary in this command on that page: yum install ea-ruby24-mod_passenger ea-apache24-mod_env ea-nodejs10
    so you still may want to install that and see if that changes the behavior.
    0

Please sign in to leave a comment.