I'm trying to make a website but server won't start - server

I'm trying to make a website and when I start the use the command rails s it says this:
<code>
$ rails s
=> Booting WEBrick
=> Rails 4.2.5.1 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
[2016-04-15 15:19:20] INFO WEBrick 1.3.1
[2016-04-15 15:19:20] INFO ruby 2.2.4 (2015-12-16) [i386-mingw32]
[2016-04-15 15:19:20] INFO WEBrick::HTTPServer#start: pid=5892 port=3000
</code>
It doesn't go past that it just gets stuck on that i've port fowarded 3000 and added it to the firewalls exceptions list and still no go it works on my dads connection but not on mine.
These are the commands I use prior to entering rails:
s , rails new instagram_app , cd_instagramapp.

After run command "rails s". Just open a browser window and navigate to http://localhost:3000
Reference: http://guides.rubyonrails.org/getting_started.html#starting-up-the-web-server

Related

Probot version 7.2 is not starting my app

With probot 7.2, if I create a simple index.js like
module.exports = app => {
app.log('YYYYYYYEEEEEEEEEEEAAAAAAAAAAAHHHHHHHHH it is working!!!!')
}
This export is not working, as when I run the application, I never see my log message. The npm run dev give those log:
> test#1.0.0 dev /tmp/test
> nodemon
[nodemon] 1.18.4
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: .env *.*
[nodemon] starting `npm start`
> test#1.0.0 start /tmp/test
> probot run ./index.js
08:46:15.243Z INFO probot: Listening on http://localhost:3000
08:46:15.817Z INFO probot:
Welcome to Probot! Go to http://localhost:3000 to get started.
If I downgrade the version to 7.1 it is fine.
Is someone know if there is some (and which) change to do with 7.2 version ?
Just found out why, so I answer myself:
On 7.1 version, there is error when your start probot without the needed env variable.
On 7.2 those errors are not showing. You need to have env variable correctly set else it will simply start but silently fail to load your setup.
The env (or .env file) must define:
APP_ID=...
WEBHOOK_PROXY_URL=...
LOG_LEVEL=...
WEBHOOK_SECRET=...
PRIVATE_KEY=...
The complete possible env variables are defined in the documentation

Q: rails-tutorial Preview page not working

I get this screen after following the rails tutorial instructions to show the Hello, world text in a browser window (Figure 1.15 in the book).
I seem to recall having to specify both the PORT and IP environment variables the last time I ran through the tutorial...but now can't find any reference to these in the book text.
Preview Fails error
I had the same error, and I fixed it by running like this:
$ rails server -p $PORT -b $IP
=> Booting Puma
=> Rails 5.1.4 application starting in development
=> Run `rails server -h` for more startup options
Puma starting in single mode...
* Version 3.9.1 (ruby 2.4.0-p0), codename: Private Caller
* Min threads: 5, max threads: 5
* Environment: development
* Listening on tcp://0.0.0.0:8080
Use Ctrl-C to stop
I haven't yet figured out why I am getting the error, though.

Service gnocchi-api not found

I've been installing Ceilometer for Openstack Pike on Ubuntu 16.04 LTS using this install guide.
Everything went ok, up to the moment, when but when I've tried to restart gnocchi-api I got message
Failed to start gnocchi-api.service: Unit gnocchi-api.service not found.
I checked /etc/init.d and there is no script gnocchi-api (although gnocchi-metricd is, and it's working properly). Tried reinstalling package gnocchi-api, but it didn't help. When starting gnocchi-api normally, from the command line it works, although sends a bunch of warnings (but I think they are common)
I'm looking for a way to make it work normally - like a service and using conf file.
2017-11-27 20:01:40.593 6059 INFO gnocchi.rest.app [-] WSGI config used: /usr/lib/python2.7/dist-packages/gnocchi/rest/api-paste.ini
2017-11-27 20:01:40.753 6059 WARNING keystonemiddleware._common.config [-] The option "__file__" in conf is not known to auth_token
2017-11-27 20:01:40.759 6059 WARNING keystonemiddleware._common.config [-] The option "configkey" in conf is not known to auth_token
2017-11-27 20:01:40.760 6059 WARNING keystonemiddleware._common.config [-] The option "here" in conf is not known to auth_token
2017-11-27 20:01:40.762 6059 WARNING keystonemiddleware.auth_token [-] AuthToken middleware is set with keystone_authtoken.service_token_roles_required set to False. This is backwards compatible but deprecated behaviour. Please set this to True.
2017-11-27 20:01:40.768 6059 WARNING keystonemiddleware.auth_token [-] Configuring auth_uri to point to the public identity endpoint is required; clients may not be able to authenticate against an admin endpoint
STARTING test server gnocchi.rest.app.build_wsgi_app
Available at http://127.0.1.1:8000/
DANGER! For testing only, do not use in production
apt-get currently pulls version 3.1.9 of gnocchi-api. If you manually install gnocchi-api 3.1.2, this service file is very much there in it.
service gnocchi-api start works fine with this.
But I am not sure if functionality is ok or if this is an intended change with 3.1.9.. Still to check these.
This is the same on the latest version on Ubuntu 16.04 / gnocchi version 4.2.0
Confirmed bug as of now: https://bugs.launchpad.net/ceilometer/+bug/1750933
gnocchi-api.service unit cannot be started as it has not been created.

Livereload not working with Ionic serve command

I run:
ionic serve
✗ (node:7616) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Running dev server: http://localhost:8100
Running live reload server: http://localhost:35729
Watching : [ 'www/**/*', '!www/lib/**/*' ]
Ionic server commands, enter:
restart or r to restart the client app from the root
goto or g and a url to have the app navigate to the given url
consolelogs or c to enable/disable console log output
serverlogs or s to enable/disable server log output
quit or q to shutdown the server and exit
My chrome starts with livereload activated
My source code contains
<script>//<![CDATA[
document.write('<script src="//' + (location.hostname || 'localhost') + ':35729/livereload.js?snipver=1"><\/script>')
//]]></script>
IOnic detects changes on file:
ionic $ JS changed: C:\Users\Proxymis\Desktop\ionic\Monuma\www\js\controllers.js
JS changed: C:\Users\Proxymis\Desktop\ionic\Monuma\www\js\controllers.js
When I open the local host on port 35729 I got
{"tinylr":"Welcome","version":"0.0.5"}
But when I modify my page, my page NEVER reloads !

Can't start tomcat7 debug mode on macOS

Here is a summary:
Objective: Debug a dynamic web application
Environment: MacOS 10.6.8 / Eclipse Helios 20110218-0911 / Tomcat 7
Error: Failed to connect to remote VM. Connection refused.
Story line:
Doing some research on this matter, I found out that the possible problem to this is that I need to start tomcat7 in debug mode which usually acts on port 8000. The command I'm using is ./catalina.sh jpda start which didn't work (it starts tomcat but doesn't start debug mode). So I tried other things like adding this
variables to the system:
declare -x CATALINA_HOME="/Library/Tomcat"
declare -x JPDA_ADDRESS="8000"
declare -x JPDA_TRANSPORT="dt_socket"
and the problem keeps happening.
this is the return of the command: ./catalina.sh jpda start
Using CATALINA_BASE: /Library/Tomcat
Using CATALINA_HOME: /Library/Tomcat
Using CATALINA_TMPDIR: /Library/Tomcat/temp
Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
Using CLASSPATH: /Library/Tomcat/bin/bootstrap.jar:/Library/Tomcat/bin/tomcat-juli.jar
can anyone help ?
thank you in advance.